str[] is too small - reported by Erik van der Kouwe <vdkouwe@cs.vu.nl>.

This commit is contained in:
Ben Gras 2007-04-23 13:36:13 +00:00
parent 8eb27a714e
commit 1d7cea10ed

View File

@ -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' : '-';