mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtcreate: Fix major buffer overflow
This code always buffer overflowed, because exactly 2 bytes less than were used were allocated. This led to dtcreate crashing when hitting "Find Set..."
This commit is contained in:
parent
a128f8e4e4
commit
466191d669
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ void activateCB_open_FindSet (Widget find_set_button, XtPointer cdata,
|
|||
|
||||
pre = GETMESSAGE(3, 10, "Create Action");
|
||||
suf = GETMESSAGE(6, 18, "Find Set");
|
||||
dialog_title = XtMalloc(strlen(pre) + strlen(suf) + 2);
|
||||
dialog_title = XtMalloc(strlen(pre) + strlen(suf) + 4);
|
||||
sprintf(dialog_title, "%s - %s", pre, suf);
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue