str[] is too small - reported by Erik van der Kouwe <vdkouwe@cs.vu.nl>.
This commit is contained in:
parent
8eb27a714e
commit
1d7cea10ed
@ -20,7 +20,7 @@ PUBLIC struct mproc mproc[NR_PROCS];
|
||||
*===========================================================================*/
|
||||
PRIVATE char *flags_str(int flags)
|
||||
{
|
||||
static char str[10];
|
||||
static char str[13];
|
||||
str[0] = (flags & WAITING) ? 'W' : '-';
|
||||
str[1] = (flags & ZOMBIE) ? 'Z' : '-';
|
||||
str[2] = (flags & PAUSED) ? 'P' : '-';
|
||||
|
Loading…
x
Reference in New Issue
Block a user