Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd NUL terminate a string.
details: https://anonhg.NetBSD.org/src/rev/8785125f02c4
branches: trunk
changeset: 801741:8785125f02c4
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Fri Aug 15 19:35:28 2014 +0000
description:
NUL terminate a string.
diffstat:
libexec/httpd/lua-bozo.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 1278284fdd7d -r 8785125f02c4 libexec/httpd/lua-bozo.c
--- a/libexec/httpd/lua-bozo.c Fri Aug 15 18:34:19 2014 +0000
+++ b/libexec/httpd/lua-bozo.c Fri Aug 15 19:35:28 2014 +0000
@@ -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 <marc%msys.ch@localhost>
@@ -276,6 +276,7 @@
*q++ = *p;
}
}
+ *q = '\0';
lua_pushstring(L, val);
lua_setfield(L, -2, s);
free(val);
Home |
Main Index |
Thread Index |
Old Index