mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dticon: Fix broken string length calculation
This commit is contained in:
parent
ac168d8918
commit
cd5d240213
1 changed files with 1 additions and 1 deletions
|
@ -2296,7 +2296,7 @@ SaveSession( void )
|
||||||
{
|
{
|
||||||
tmpStr = GETSTR(16,24, "Couldn't save session to file");
|
tmpStr = GETSTR(16,24, "Couldn't save session to file");
|
||||||
tmpStr2 = (char *)XtMalloc(strlen(tmpStr) + strlen(path)+ 3);
|
tmpStr2 = (char *)XtMalloc(strlen(tmpStr) + strlen(path)+ 3);
|
||||||
snprintf(tmpStr2, sizeof(strlen(tmpStr) + strlen(path)+ 3), "%s: %s\n", tmpStr, path);
|
snprintf(tmpStr2, strlen(tmpStr) + strlen(path) + 3, "%s: %s\n", tmpStr, path);
|
||||||
_DtSimpleErrnoError(progName, DtError, NULL, tmpStr2, NULL);
|
_DtSimpleErrnoError(progName, DtError, NULL, tmpStr2, NULL);
|
||||||
XtFree(tmpStr2);
|
XtFree(tmpStr2);
|
||||||
XtFree ((char *)path);
|
XtFree ((char *)path);
|
||||||
|
|
Loading…
Reference in a new issue