X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmisc.c;h=3da335978e5a2a539899ad89edc9c3e5bb77cabc;hb=8555e08bda91e309c9878785a5aef82ca3497394;hp=33db03d76a76cc080df7fda89735e48008b6596d;hpb=d2587727d750fdf2aae4eb8f4acb487a5c211041;p=rocksndiamonds.git diff --git a/src/misc.c b/src/misc.c index 33db03d7..3da33597 100644 --- a/src/misc.c +++ b/src/misc.c @@ -347,6 +347,7 @@ char *getStringToLower(char *s) while (*s) *s_ptr++ = tolower(*s++); + *s_ptr = '\0'; return s_copy; }