mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 01:16:43 -06:00
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:
parent
a25c54896e
commit
76f16c91d2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user