Avoid buffer overrun in qoflog.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13825 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-04-22 01:25:35 +00:00
parent a25c54896e
commit 76f16c91d2

View File

@ -182,7 +182,7 @@ qof_log_prettify (const char *name)
*(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;