From: Ben Gras Date: Mon, 23 Apr 2007 13:36:13 +0000 (+0000) Subject: str[] is too small - reported by Erik van der Kouwe . X-Git-Tag: v3.1.4~421 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/man.7.ps?a=commitdiff_plain;h=1d7cea10ed55ec29419daa61dc2ff70ffabd4a25;p=minix.git str[] is too small - reported by Erik van der Kouwe . --- diff --git a/servers/is/dmp_pm.c b/servers/is/dmp_pm.c index c6441c788..2853aec2c 100644 --- a/servers/is/dmp_pm.c +++ b/servers/is/dmp_pm.c @@ -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' : '-';