s[j] = (random() % 10) + '0';
s[j++] = '?';
s[j++] = ':';
- s[j++] = 0;
+ s[j] = 0;
}
/* change one digit in this barcode */
barcode_reshape (Display *dpy, Window window, void *closure,
unsigned int w, unsigned int h)
{
+ struct state *st = (struct state *) closure;
+ st->windowWidth = w;
+ st->windowHeight = h;
}
static void