I was hoping for a quick and easy release for 2021, but of course I should have known better. I ran into several errors in the src/util directory. If anyone has some free time I could use some help resolving or even possibly removal of some these outdated files. m-w.com has not worked for a while and not sure it is worth the effort to maintain. I have limited bandwidth getting ready for a move overseas. Appreciate the assistance, the latest is on github.
Code:
gcc -g -O2 -Wall -Wno-char-subscripts -Wno-unused-but-set-variable -DCIRCLE_UTIL -I.. -o ../../bin/shopconv shopconv.c
shopconv.c: In function ‘main’:
shopconv.c:167:23: warning: ‘%s’ directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=]
sprintf(part, "mv %s %s.tmp", fn, fn);
^~ ~~
shopconv.c:167:5: note: ‘sprintf’ output between 9 and 519 bytes into a destination of size 256
sprintf(part, "mv %s %s.tmp", fn, fn);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shopconv.c:169:22: warning: ‘.tmp’ directive writing 4 bytes into a region of size between 1 and 256 [-Wformat-overflow=]
sprintf(part, "%s.tmp", fn);
^~~~
shopconv.c:169:5: note: ‘sprintf’ output between 5 and 260 bytes into a destination of size 256
sprintf(part, "%s.tmp", fn);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
shopconv.c:113:41: warning: ‘%s’ directive writing up to 255 bytes into a region of size 127 [-Wformat-overflow=]
sprintf(buf2, "beginning of shop file %s", filename);
^~
shopconv.c:180:47:
result = boot_the_shops_conv(sfp, nsfp, fn);
~~
shopconv.c:113:3: note: ‘sprintf’ output between 24 and 279 bytes into a destination of size 150
sprintf(buf2, "beginning of shop file %s", filename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shopconv.c:184:20: warning: ‘%s’ directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=]
sprintf(part, "mv %s.tmp %s", fn, fn);
^~ ~~
shopconv.c:184:2: note: ‘sprintf’ output between 9 and 519 bytes into a destination of size 256
sprintf(part, "mv %s.tmp %s", fn, fn);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shopconv.c:187:20: warning: ‘%s’ directive writing up to 255 bytes into a region of size 253 [-Wformat-overflow=]
sprintf(part, "mv %s.tmp %s.bak", fn, fn);
^~ ~~
shopconv.c:187:2: note: ‘sprintf’ output between 13 and 523 bytes into a destination of size 256
sprintf(part, "mv %s.tmp %s.bak", fn, fn);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
shopconv.c:119:44: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 119 and 129 [-Wformat-overflow=]
sprintf(buf2, "shop #%d in shop file %s", temp, filename);
^~
shopconv.c:180:47:
result = boot_the_shops_conv(sfp, nsfp, fn);
~~
shopconv.c:119:7: note: ‘sprintf’ output between 22 and 287 bytes into a destination of size 150
sprintf(buf2, "shop #%d in shop file %s", temp, filename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -g -O2 -Wall -Wno-char-subscripts -Wno-unused-but-set-variable -DCIRCLE_UTIL -I.. -o ../../bin/webster webster.c
webster.c: In function ‘parse_webster_html’:
webster.c:106:9: warning: ‘strncpy’ specified bound 10000 equals destination size [-Wstringop-truncation]
strncpy(scanbuf, p, sizeof(scanbuf)); // strtok on a copy.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
webster.c:75:9: warning: ‘strncpy’ specified bound 10000 equals destination size [-Wstringop-truncation]
strncpy(scanbuf, p, sizeof(scanbuf)); // strtok on a copy.
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~