6fede208d23ac60261a6c8ca83ad4eb0b249acb8
* 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
Files for tbaMUD.
Description
Languages
C
72.1%
PLSQL
23%
Jupyter Notebook
2.3%
Roff
1%
CMake
0.5%
Other
1%