X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fbarcode.c;h=7e15d0d4b01622348a533abc5f70156a50068e47;hp=61b0c237b76ceecd38452d84eaa3949857ff2473;hb=50be9bb40dc60130c99ffa568e6677779904ff70;hpb=5f1f12f2a37da634000f96d18d59cc73a8814ef7 diff --git a/hacks/barcode.c b/hacks/barcode.c index 61b0c237..7e15d0d4 100644 --- a/hacks/barcode.c +++ b/hacks/barcode.c @@ -1728,7 +1728,7 @@ static void updateGrid (struct state *st) s[j] = (random() % 10) + '0'; s[j++] = '?'; s[j++] = ':'; - s[j++] = 0; + s[j] = 0; } /* change one digit in this barcode */