X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fxmatrix.c;fp=hacks%2Fxmatrix.c;h=4f88d8d895ef4e95407ff2a765e1a3b3dc73b225;hp=4ae544547e49a7fc1133fdc0ad4bb43ef90c9ebc;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hpb=3f1091236d800c43a3124c44c7da54e53f205b13 diff --git a/hacks/xmatrix.c b/hacks/xmatrix.c index 4ae54454..4f88d8d8 100644 --- a/hacks/xmatrix.c +++ b/hacks/xmatrix.c @@ -1343,7 +1343,7 @@ hack_text (m_state *state) AGAIN: c = ((unsigned char *) state->typing)[0]; - c1 = ((unsigned char *) state->typing)[1]; + c1 = c ? ((unsigned char *) state->typing)[1] : 0; state->typing_delay = (!c || c1 == '\n' ? state->typing_line_delay