[Gnucash-changes] r13825 - gnucash/trunk/lib/libqof/qof - Avoid buffer overrun in qoflog.

Chris Shoemaker chris at cvs.gnucash.org
Fri Apr 21 21:25:36 EDT 2006


Author: chris
Date: 2006-04-21 21:25:35 -0400 (Fri, 21 Apr 2006)
New Revision: 13825
Trac: http://svn.gnucash.org/trac/changeset/13825

Modified:
   gnucash/trunk/lib/libqof/qof/qoflog.c
Log:
   Avoid buffer overrun in qoflog.


Modified: gnucash/trunk/lib/libqof/qof/qoflog.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qoflog.c	2006-04-22 00:57:03 UTC (rev 13824)
+++ gnucash/trunk/lib/libqof/qof/qoflog.c	2006-04-22 01:25:35 UTC (rev 13825)
@@ -182,7 +182,7 @@
     *(p+1) = ')';
     *(p+2) = 0x0;
   }
-  else { strcpy (&buffer[QOF_LOG_MAX_CHARS - 4], "...()"); }
+  else { strcpy (&buffer[QOF_LOG_MAX_CHARS - 6], "...()"); }
   function_buffer = g_strdup(buffer);
   g_free(buffer);
   return function_buffer;



More information about the gnucash-changes mailing list