Commit 7f2fbb0b authored by Pekka Pessi's avatar Pekka Pessi
Browse files

su_bm.c: fixed stupid bug brought from documenting stuff.

parent bce1716d
......@@ -62,7 +62,7 @@ bm_memmem_study0(char const *needle, size_t nlen, bm_fwd_table_t *fwd)
nlen = UCHAR_MAX;
memset(fwd->table[i], (unsigned char)nlen, sizeof fwd->table);
memset(&fwd->table, (unsigned char)nlen, sizeof fwd->table);
for (i = 0; i < nlen; i++) {
fwd->table[(unsigned short)needle[i]] = (unsigned char)(nlen - i - 1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment