tbaMUD is the continued development of the codebase formerly known as CircleMUD. http://tbamud.com/
Find a file
Thomas Arp 6fede208d2
Gcc 9.2.1 warnings (#87)
* Make sure all followers are free'd before freeing the character list

Otherwise, the followers structs will point to free'd memory and
the stop_follower call will attempt to dereference a free'd
characters' followers list.

* fix gcc warning: truncation in strncat

In file included from /usr/include/string.h:494,
from sysdep.h:74,
from act.item.c:12:
In function ‘strncat’,
inlined from ‘name_from_drinkcon’ at act.item.c:804:5,
inlined from ‘name_from_drinkcon’ at act.item.c:769:6:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:136:10: warning: ‘__builtin_strncat’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
136 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
act.item.c: In function ‘name_from_drinkcon’:
act.item.c:797:16: note: length computed here
797 | cpylen = strlen(cur_name);
| ^~~~~~~~~~~~~~~~

* Whitespace cleanup before bugfix

* Fix warnings for gcc-9.2.1

Also, fixed an ancient FIXME and a known bad strcat usage.

spell_parser.c: In function ‘say_spell’:
spell_parser.c:135:75: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 216 [-Wformat-truncation=]
135 | snprintf(buf1, sizeof(buf1), "$n stares at you and utters the words, '%s'.",
| ^~
In file included from /usr/include/stdio.h:867,
from sysdep.h:69,
from spell_parser.c:12:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 43 and 298 bytes into a destination of size 256
2020-03-08 08:33:59 -04:00
bin Added the bin directory 2013-08-21 19:11:36 -04:00
cnf Setting up 3.5.0 as trunk 2006-12-19 22:56:18 +00:00
doc Updated for 2020 release 2020-01-14 20:02:24 +01:00
lib Updated for 2020 release 2020-01-14 20:02:24 +01:00
log Setting up 3.5.0 as trunk 2006-12-19 22:56:18 +00:00
src Gcc 9.2.1 warnings (#87) 2020-03-08 08:33:59 -04:00
.gitignore Fix error in "last all" command and several -Wunused-result compiler errors (#55) 2018-07-21 19:37:18 -04:00
autorun test commit 2010-12-02 22:35:47 +00:00
autorun.amiga Setting up 3.5.0 as trunk 2006-12-19 22:56:18 +00:00
autorun.cmd [Dec 05 2009] - Rumble 2009-12-05 22:24:22 +00:00
autorun.pl [Dec 05 2009] - Rumble 2009-12-05 22:24:22 +00:00
autorun.sh [Dec 05 2009] - Rumble 2009-12-05 22:24:22 +00:00
changelog Updated for 2019 release 2019-01-19 23:25:38 +00:00
configure Added -Wno-unused-but-set-variable to MYFLAGS in configure. 2017-01-20 15:19:13 -05:00
LICENSE.md Typos 2015-03-29 11:05:35 +01:00
macrun.pl [Dec 05 2009] - Rumble 2009-12-05 22:24:22 +00:00
README.md Github-recommended files 2013-04-13 00:24:38 +02:00
vms_autorun.com Setting up 3.5.0 as trunk 2006-12-19 22:56:18 +00:00

Files for tbaMUD.