projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac168d8
)
dticon: Fix broken string length calculation
author
Peter Howkins
<flibble@users.sf.net>
Mon, 30 Apr 2018 00:51:15 +0000
(
01:51
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Mon, 30 Apr 2018 00:51:15 +0000
(
01:51
+0100)
cde/programs/dticon/utils.c
patch
|
blob
|
history
diff --git
a/cde/programs/dticon/utils.c
b/cde/programs/dticon/utils.c
index 27aaee8003bb2511ec07db3d223959be8a18d45e..2f7cf266cb9bc975515361c2f5a376ddcc2a33e3 100644
(file)
--- a/
cde/programs/dticon/utils.c
+++ b/
cde/programs/dticon/utils.c
@@
-2296,7
+2296,7
@@
SaveSession( void )
{
tmpStr = GETSTR(16,24, "Couldn't save session to file");
tmpStr2 = (char *)XtMalloc(strlen(tmpStr) + strlen(path)+ 3);
- snprintf(tmpStr2, s
izeof(strlen(tmpStr) + strlen(path)+ 3)
, "%s: %s\n", tmpStr, path);
+ snprintf(tmpStr2, s
trlen(tmpStr) + strlen(path) + 3
, "%s: %s\n", tmpStr, path);
_DtSimpleErrnoError(progName, DtError, NULL, tmpStr2, NULL);
XtFree(tmpStr2);
XtFree ((char *)path);