Skip to content
Snippets Groups Projects
Commit 573b4d0d authored by rswindell's avatar rswindell
Browse files

Changed printf width specifiers to (int) to make gcc happy.

parent eb50786d
No related branches found
No related tags found
No related merge requests found
...@@ -111,13 +111,15 @@ ulong sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, long mode, int subnum ...@@ -111,13 +111,15 @@ ulong sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, long mode, int subnum
sprintf(to,"%.128s",msg->to); sprintf(to,"%.128s",msg->to);
if(msg->from_net.type==NET_QWK && mode&VIA && !msg->forwarded) { if(msg->from_net.type==NET_QWK && mode&VIA && !msg->forwarded) {
sprintf(str,"@VIA: %.*s%c",sizeof(str)-12,(char*)msg->from_net.addr,QWK_NEWLINE); sprintf(str,"@VIA: %.*s%c"
,(int)(sizeof(str)-12),(char*)msg->from_net.addr,QWK_NEWLINE);
fwrite(str,strlen(str),1,qwk_fp); fwrite(str,strlen(str),1,qwk_fp);
size+=strlen(str); } size+=strlen(str); }
if(mode&MSGID && (uint)subnum!=INVALID_SUB) { if(mode&MSGID && (uint)subnum!=INVALID_SUB) {
if(msg->id) if(msg->id)
sprintf(str,"@MSGID: %.*s%c",sizeof(str)-12,msg->id,QWK_NEWLINE); sprintf(str,"@MSGID: %.*s%c"
,(int)(sizeof(str)-12),msg->id,QWK_NEWLINE);
else else
sprintf(str,"@MSGID: <%08lX.%lu.%s@%s>%c" sprintf(str,"@MSGID: <%08lX.%lu.%s@%s>%c"
,msg->idx.time,msg->idx.number ,msg->idx.time,msg->idx.number
...@@ -129,7 +131,8 @@ ulong sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, long mode, int subnum ...@@ -129,7 +131,8 @@ ulong sbbs_t::msgtoqwk(smbmsg_t* msg, FILE *qwk_fp, long mode, int subnum
str[0]=0; str[0]=0;
if(msg->reply_id) if(msg->reply_id)
sprintf(str,"@REPLY: %.*s%c",sizeof(str)-12,msg->reply_id,QWK_NEWLINE); sprintf(str,"@REPLY: %.*s%c"
,(int)(sizeof(str)-12),msg->reply_id,QWK_NEWLINE);
else if(msg->hdr.thread_orig) { else if(msg->hdr.thread_orig) {
memset(&orig_msg,0,sizeof(orig_msg)); memset(&orig_msg,0,sizeof(orig_msg));
orig_msg.hdr.number=msg->hdr.thread_orig; orig_msg.hdr.number=msg->hdr.thread_orig;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment