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:
8a96463
)
AttachArea.C: NULL is not 0, sprintf needs a format
author
Jon Trulson
<jon@radscan.com>
Sun, 6 Apr 2014 22:48:40 +0000
(16:48 -0600)
committer
Jon Trulson
<jon@radscan.com>
Sun, 6 Apr 2014 22:48:40 +0000
(16:48 -0600)
cde/programs/dtmail/dtmail/AttachArea.C
patch
|
blob
|
history
diff --git
a/cde/programs/dtmail/dtmail/AttachArea.C
b/cde/programs/dtmail/dtmail/AttachArea.C
index 7f1c21ea6a738767c890a3e3efdbe86199f7f201..c4848173a85b412fdee9ac30ed299a0e68ad3980 100644
(file)
--- a/
cde/programs/dtmail/dtmail/AttachArea.C
+++ b/
cde/programs/dtmail/dtmail/AttachArea.C
@@
-663,7
+663,7
@@
AttachArea::addAttachment(
buffer = new char[s.st_size + 1];
if (!buffer) {
- sprintf(buf,
+ sprintf(buf, "%s",
GETMSG(DT_catd, 3, 36, "Unable to allocate memory."));
helpId = DTMAILHELPNOALLOCMEM;
answer = this->handleErrorDialog(GETMSG(DT_catd, 1, 83, "Mailer"),
@@
-1471,7
+1471,7
@@
AttachArea::undeleteLastDeletedAttachment(
Attachment *tmpAttachment;
Attachment **list;
- time_t time_deleted =
NULL, tmpTime = NULL
;
+ time_t time_deleted =
0, tmpTime = 0
;
int i;
if (_deleteCount == 0) {