Skip to content
Snippets Groups Projects
Commit 90708d10 authored by rswindell's avatar rswindell
Browse files

extend qwkbuf length to 129 for null-terminator (fix for strlen() call on

truncated kludge lines).
parent 1201596d
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@
bool sbbs_t::qwktomsg(FILE *qwk_fp, char *hdrblk, char fromhub, uint subnum
, uint touser)
{
char str[256],*body,*tail,col=0,lastch=0,*p,*lzhbuf,qwkbuf[128];
char str[256],*body,*tail,col=0,lastch=0,*p,*lzhbuf,qwkbuf[129];
uint i,j,k,lzh=0,storage,skip=0;
ushort xlat;
long l,bodylen,taillen,length;
......@@ -117,6 +117,7 @@ bool sbbs_t::qwktomsg(FILE *qwk_fp, char *hdrblk, char fromhub, uint subnum
strlwr(str);
msg.idx.to=crc16(str); }
memset(qwkbuf,0,sizeof(qwkbuf));
fread(qwkbuf,1,128,qwk_fp);
if(useron.rest&FLAG('Q') || fromhub) { /* QWK Net */
......
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