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
|
|
@ -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…
Reference in New Issue