diff options
-rw-r--r-- | info.c | 2 | ||||
-rw-r--r-- | save.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -226,7 +226,7 @@ DisplayProps(ClientRec *client) XtNstring, buffer.bufStart, NULL); - sprintf (buffer.bufStart, + snprintf (buffer.bufStart, buffer.bufSize, "SM Properties : %s", clientListNames[index]); ptr = Strstr (buffer.bufStart, ") Restart"); @@ -420,7 +420,7 @@ SaveOkXtProc(Widget w, XtPointer client_data, XtPointer callData) { name_locked = False; - sprintf (label, "Another session by the name '%s' already exists.\nWould you like to overwrite it?", name); + snprintf (label, sizeof(label), "Another session by the name '%s' already exists.\nWould you like to overwrite it?", name); XtManageChild (nameInUseOverwriteButton); |