From d71cc434e40c73d6557529f58287c5bbc5451114 Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 24 Apr 2014 18:58:47 +0000 Subject: (svn r26504) -Fix (r26499): Obiwan and his gang. --- src/game/game_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/game_text.cpp b/src/game/game_text.cpp index bfff460ae..1717dcf9a 100644 --- a/src/game/game_text.cpp +++ b/src/game/game_text.cpp @@ -66,7 +66,7 @@ void NORETURN CDECL strgen_fatal(const char *s, ...) */ LanguageStrings::LanguageStrings(const char *language, const char *end) { - this->language = stredup(language, end - 1); + this->language = stredup(language, end != NULL ? end - 1 : NULL); } /** Free everything. */ -- cgit v1.2.3-70-g09d2