From d579190bc9ccd2d9922eed36e8c254bd8b4f292c Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sat, 27 Oct 2018 23:10:59 +1000 Subject: [PATCH] Lets try this... --- utils/qwknet/qwkscan.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/qwknet/qwkscan.c b/utils/qwknet/qwkscan.c index ef68aa7..0927d2e 100644 --- a/utils/qwknet/qwkscan.c +++ b/utils/qwknet/qwkscan.c @@ -226,7 +226,7 @@ int export_messages(int baseno, char *basefilename, int qwkidx) { msgbuf = (char *)malloc(lenbytes); - memset(msgbuf, '\0', lenbytes); + memset(msgbuf, ' ', lenbytes); JAM_ReadMsgText(jb, jmh.TxtOffset, jmh.TxtLen, msgbuf); @@ -238,10 +238,10 @@ int export_messages(int baseno, char *basefilename, int qwkidx) { msgptr++; } - msgptr = &msgbuf[lenbytes-1]; - while (*msgptr == '\0') { - *msgptr = ' '; - msgptr--; + for (z=0;z