1
0
Fork 0
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:
Frederic Koehler 2012-08-16 21:04:56 -04:00 committed by Jon Trulson
parent a128f8e4e4
commit 466191d669

View file

@ -106,7 +106,7 @@ void activateCB_open_FindSet (Widget find_set_button, XtPointer cdata,
pre = GETMESSAGE(3, 10, "Create Action"); pre = GETMESSAGE(3, 10, "Create Action");
suf = GETMESSAGE(6, 18, "Find Set"); 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); sprintf(dialog_title, "%s - %s", pre, suf);
#ifdef DEBUG #ifdef DEBUG