X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Ffliptext.c;fp=hacks%2Fglx%2Ffliptext.c;h=798c1c685ae0f5f6d6f2fc5ad818729d56f6f07e;hp=536a2240afc362c2dee5962122e8101bcd00890e;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hpb=3f1091236d800c43a3124c44c7da54e53f205b13 diff --git a/hacks/glx/fliptext.c b/hacks/glx/fliptext.c index 536a2240..798c1c68 100644 --- a/hacks/glx/fliptext.c +++ b/hacks/glx/fliptext.c @@ -1,5 +1,5 @@ /* - * fliptext, Copyright (c) 2005-2011 Jamie Zawinski + * fliptext, Copyright (c) 2005-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 @@ -243,10 +243,10 @@ get_one_line (fliptext_configuration *sc) */ while (target > 0) { - char c = textclient_getc (sc->tc); + int c = textclient_getc (sc->tc); if (c <= 0) break; - sc->buf[sc->buf_tail++] = c; + sc->buf[sc->buf_tail++] = (char) c; sc->buf[sc->buf_tail] = 0; target--; if (c == '\r' || c == '\n')