Skip to content

Commit

Permalink
Fixed: Sys_ConPrint should not attempt to print zero-length strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng authored and skyjake committed Jul 17, 2011
1 parent 801b0a3 commit cc9426e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/sys_sdl_window.c
Expand Up @@ -136,7 +136,7 @@ void Sys_ConPrint(uint idx, const char *text, int clflags)
char ch;
int maxPos[2];

if(!winManagerInited)
if(!winManagerInited || !text)
return;

if(!novideo && idx != 1)
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/win32/src/sys_window.c
Expand Up @@ -187,7 +187,7 @@ void Sys_ConPrint(uint idx, const char *text, int clflags)
size_t len;
CHAR_INFO line[LINELEN];

if(!winManagerInited)
if(!winManagerInited || !text)
return;

win = getWindow(idx - 1);
Expand Down

0 comments on commit cc9426e

Please sign in to comment.