diff options
Diffstat (limited to 'save.c')
-rw-r--r-- | save.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1314,9 +1314,6 @@ PopupBadSave(void) extra1 = maxlen1 - strlen (progName) + 5; extra2 = maxlen2 - strlen (hostname); - clientInfo = (String) XtMalloc (strlen (progName) + - extra1 + extra2 + 3 + strlen (hostname) + 1); - for (k = 0; k < extra1; k++) extraBuf1[k] = ' '; extraBuf1[extra1] = '\0'; @@ -1325,7 +1322,7 @@ PopupBadSave(void) extraBuf2[k] = ' '; extraBuf2[extra2] = '\0'; - sprintf (clientInfo, "%s%s (%s%s)", progName, extraBuf1, + XtAsprintf (&clientInfo, "%s%s (%s%s)", progName, extraBuf1, hostname, extraBuf2); failedNames[i++] = clientInfo; |