21 lines
455 B
Plaintext
21 lines
455 B
Plaintext
|
--- src/cmd/builtin/what.c
|
||
|
+++ src/cmd/builtin/what.c 2012-02-10 17:06:06.262433626 +0000
|
||
|
@@ -68,7 +68,7 @@ static struct
|
||
|
int match;
|
||
|
int single;
|
||
|
size_t skip[UCHAR_MAX+1];
|
||
|
- unsigned char prev[3];
|
||
|
+ unsigned char prev[4];
|
||
|
} state;
|
||
|
|
||
|
static void
|
||
|
@@ -99,7 +99,7 @@ what(const char* file, Sfio_t* ip, Sfio_
|
||
|
{
|
||
|
next:
|
||
|
s = state.prev;
|
||
|
- s[0] = s[1] = s[2] = 0;
|
||
|
+ s[0] = s[1] = s[2] = s[3] = 0;
|
||
|
switch (mid)
|
||
|
{
|
||
|
default:
|