X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxmatrix.c;h=4ae544547e49a7fc1133fdc0ad4bb43ef90c9ebc;hp=ba467049c5ba3f61b8a5428a5268deb73cdb6271;hb=ff35d056d723c9a5ffe728dbba5f1c25e141be04;hpb=b81f521c5ad7022ac12db18ca8fcdd9fb063831e diff --git a/hacks/xmatrix.c b/hacks/xmatrix.c index ba467049..4ae54454 100644 --- a/hacks/xmatrix.c +++ b/hacks/xmatrix.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1999-2012 Jamie Zawinski +/* xscreensaver, Copyright (c) 1999-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 @@ -335,11 +335,13 @@ fill_input (m_state *s) if (!s->tc) return; - if (loadBytes > 0){ - char c = textclient_getc (s->tc); - n = (c > 0 ? 1 : -1); - s->buf [s->buf_pos] = c; - } + if (loadBytes > 0) + { + int c = textclient_getc (s->tc); + n = (c > 0 ? 1 : -1); + s->buf [s->buf_pos] = (char) c; + } + if (n > 0) { s->do_fill_buff = False;