Skip to content
Snippets Groups Projects
Commit 83602fc6 authored by rswindell's avatar rswindell
Browse files

Eliminated gcc printf format warnings.

parent 8df25aed
No related branches found
No related tags found
No related merge requests found
......@@ -3661,7 +3661,7 @@ void export_echomail(char *sub_code,faddr_t addr)
fmsgbuflen=strlen((char *)buf)+4096; /* over alloc for kludge lines */
fmsgbuf=MALLOC(fmsgbuflen);
if(!fmsgbuf) {
printf("ERROR allocating %u bytes for fmsgbuf\n",fmsgbuflen);
printf("ERROR allocating %lu bytes for fmsgbuf\n",fmsgbuflen);
logprintf("ERROR line %d allocating %lu bytes for fmsgbuf"
,__LINE__,fmsgbuflen);
smb_unlockmsghdr(&smb[cur_smb],&msg);
......@@ -3707,7 +3707,7 @@ void export_echomail(char *sub_code,faddr_t addr)
/* Unknown kludge lines are added here */
for(l=0;l<msg.total_hfields && f<fmsgbuflen;l++)
if(msg.hfield[l].type == FIDOCTRL)
f+=sprintf(fmsgbuf+f,"\1%.512s\r",msg.hfield_dat[l]);
f+=sprintf(fmsgbuf+f,"\1%.512s\r",(char*)msg.hfield_dat[l]);
for(l=0,cr=1;buf[l] && f<fmsgbuflen;l++) {
if(buf[l]==1) { /* Ctrl-A, so skip it and the next char */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment