From: Serge Hallyn Date: Thu, 6 Jun 2013 15:42:36 +0000 (+0200) Subject: subordinateio: Fix subordinate_parse to have an internal static buffer X-Git-Tag: 4.2.1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b3c8001fe35f2d960a45abc9490c3d46e718e16;p=shadow subordinateio: Fix subordinate_parse to have an internal static buffer subordinate_parse is supposed to return a static structure that represents one line in /etc/subuid or /etc/subgid. I goofed and failed to make the variable rangebuf that holds the username of in the returned structure static. Add this missing static specification. Author: Signed-off-by: Serge Hallyn --- diff --git a/lib/subordinateio.c b/lib/subordinateio.c index 851cfa05..4cca9925 100644 --- a/lib/subordinateio.c +++ b/lib/subordinateio.c @@ -48,7 +48,7 @@ static void subordinate_free (/*@out@*/ /*@only@*/void *ent) static void *subordinate_parse (const char *line) { static struct subordinate_range range; - char rangebuf[1024]; + static char rangebuf[1024]; int i; char *cp; char *fields[NFIELDS];