mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
Fixed Warnings for new GCC
This commit is contained in:
parent
fefa0eac1d
commit
64300c6036
19 changed files with 88 additions and 78 deletions
|
|
@ -373,7 +373,7 @@ void check_mobile_string(mob_vnum i, char **string, const char *desc)
|
|||
if (*string == NULL || **string == '\0') {
|
||||
char smbuf[128];
|
||||
sprintf(smbuf, "GenOLC: Mob #%d has an invalid %s.", i, desc);
|
||||
mudlog(BRF, LVL_GOD, TRUE, smbuf);
|
||||
mudlog(BRF, LVL_GOD, TRUE, "%s", smbuf);
|
||||
if (*string)
|
||||
free(*string);
|
||||
*string = strdup("An undefined string.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue