X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fnoseguy.c;fp=hacks%2Fnoseguy.c;h=c0691b3ab8e224405236f2566ba9b8952c098f70;hp=32b09e251ef91996baca957a49bb03989680f5f8;hb=ff35d056d723c9a5ffe728dbba5f1c25e141be04;hpb=b81f521c5ad7022ac12db18ca8fcdd9fb063831e diff --git a/hacks/noseguy.c b/hacks/noseguy.c index 32b09e25..c0691b3a 100644 --- a/hacks/noseguy.c +++ b/hacks/noseguy.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1992-2012 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992-2013 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 @@ -483,11 +483,11 @@ fill_words (struct state *st) while (p < st->words + sizeof(st->words) - 1 && st->lines < MAXLINES) { - char c = textclient_getc (st->tc); + int c = textclient_getc (st->tc); if (c == '\n') st->lines++; if (c > 0) - *p++ = c; + *p++ = (char) c; else break; }