tbaMUD 2021 Pre-release Bugs

  • Rumble
  • Rumble's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
1 month 2 weeks ago - 1 month 1 week ago #9784 by Rumble
tbaMUD 2021 Pre-release Bugs was created by Rumble
tbaMUD Team,
   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.

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.
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.
Last edit: 1 month 1 week ago by Rumble.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #9786 by thomas
Replied by thomas on topic tbaMUD 2021 Pre-release Bugs
Please login to view the answers

Please Log in or Create an account to join the conversation.

More
1 week 6 days ago #9794 by cunning
Replied by cunning on topic tbaMUD 2021 Pre-release Bugs
Please login to view the answers

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #9822 by Mad Mike
Replied by Mad Mike on topic tbaMUD 2021 Pre-release Bugs
Please login to view the answers

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #9823 by thomas
Replied by thomas on topic tbaMUD 2021 Pre-release Bugs
Please login to view the answers
The following user(s) said Thank You: Mad Mike

Please Log in or Create an account to join the conversation.

More
1 week 20 hours ago #9827 by Mad Mike
Replied by Mad Mike on topic tbaMUD 2021 Pre-release Bugs
Please login to view the answers

Please Log in or Create an account to join the conversation.

Time to create page: 0.099 seconds