mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
AttachArea.C: NULL is not 0, sprintf needs a format
This commit is contained in:
parent
8a96463f2e
commit
b241414cda
1 changed files with 2 additions and 2 deletions
|
@ -663,7 +663,7 @@ AttachArea::addAttachment(
|
||||||
buffer = new char[s.st_size + 1];
|
buffer = new char[s.st_size + 1];
|
||||||
|
|
||||||
if (!buffer) {
|
if (!buffer) {
|
||||||
sprintf(buf,
|
sprintf(buf, "%s",
|
||||||
GETMSG(DT_catd, 3, 36, "Unable to allocate memory."));
|
GETMSG(DT_catd, 3, 36, "Unable to allocate memory."));
|
||||||
helpId = DTMAILHELPNOALLOCMEM;
|
helpId = DTMAILHELPNOALLOCMEM;
|
||||||
answer = this->handleErrorDialog(GETMSG(DT_catd, 1, 83, "Mailer"),
|
answer = this->handleErrorDialog(GETMSG(DT_catd, 1, 83, "Mailer"),
|
||||||
|
@ -1471,7 +1471,7 @@ AttachArea::undeleteLastDeletedAttachment(
|
||||||
|
|
||||||
Attachment *tmpAttachment;
|
Attachment *tmpAttachment;
|
||||||
Attachment **list;
|
Attachment **list;
|
||||||
time_t time_deleted = NULL, tmpTime = NULL;
|
time_t time_deleted = 0, tmpTime = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (_deleteCount == 0) {
|
if (_deleteCount == 0) {
|
||||||
|
|
Loading…
Reference in a new issue