Date: Tuesday December 11, 2001 @ 11:20
Author: matt
Update of /home/cvs/AxKit
In directory ted:/home/matt/Perl/AxKit
Modified Files:
getstyles.c
Log Message:
terminate by NUL in case chars > buffer
Index: getstyles.c
===================================================================
RCS file: /home/cvs/AxKit/getstyles.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- getstyles.c 2001/11/28 14:35:52 1.14
+++ getstyles.c 2001/12/11 11:20:43 1.15
@@ -1,4 +1,4 @@
-/* $Id: getstyles.c,v 1.14 2001/11/28 14:35:52 matt Exp $ */
+/* $Id: getstyles.c,v 1.15 2001/12/11 11:20:43 matt Exp $ */
#ifdef HAVE_LIBXML2
#include "getstyles.h"
@@ -136,6 +136,8 @@
chars = SvPV(tbuff, read_length);
strncpy(buffer, chars, read_length);
+ /* terminate by NUL in case chars > buffer */
+ buffer[len - 1] = 0;
FREETMPS;
LEAVE;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]