X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgltext.c;h=e33280be7916a2cef7d76cb950185338ff70d667;hp=43d50fb9649b45d2bfe2e31c1eee42d5bef3dcc9;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hpb=3f1091236d800c43a3124c44c7da54e53f205b13 diff --git a/hacks/glx/gltext.c b/hacks/glx/gltext.c index 43d50fb9..e33280be 100644 --- a/hacks/glx/gltext.c +++ b/hacks/glx/gltext.c @@ -1,4 +1,4 @@ -/* gltext, Copyright (c) 2001-2012 Jamie Zawinski +/* gltext, Copyright (c) 2001-2014 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -198,11 +198,11 @@ parse_text (ModeInfo *mi) while (p < buf + sizeof(buf) - 1 && lines < max_lines) { - char c = textclient_getc (tp->tc); + int c = textclient_getc (tp->tc); if (c == '\n') lines++; if (c > 0) - *p++ = c; + *p++ = (char) c; else break; }