Module Name:    src
Committed By:   mbalmer
Date:           Fri Aug 15 19:35:28 UTC 2014

Modified Files:
        src/libexec/httpd: lua-bozo.c

Log Message:
NUL terminate a string.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/libexec/httpd/lua-bozo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/lua-bozo.c
diff -u src/libexec/httpd/lua-bozo.c:1.10 src/libexec/httpd/lua-bozo.c:1.11
--- src/libexec/httpd/lua-bozo.c:1.10	Sat Jul 19 18:38:34 2014
+++ src/libexec/httpd/lua-bozo.c	Fri Aug 15 19:35:28 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: lua-bozo.c,v 1.10 2014/07/19 18:38:34 lneto Exp $	*/
+/*	$NetBSD: lua-bozo.c,v 1.11 2014/08/15 19:35:28 mbalmer Exp $	*/
 
 /*
  * Copyright (c) 2013 Marc Balmer <m...@msys.ch>
@@ -276,6 +276,7 @@ lua_url_decode(lua_State *L, char *s)
 			*q++ = *p;
 		}
 	}
+	*q = '\0';
 	lua_pushstring(L, val);
 	lua_setfield(L, -2, s);
 	free(val);

Reply via email to