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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c119819f98a0371df3fb15cbeb2ed13e041aa4c;p=thirdparty%2Fshadow.git 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 851cfa059..4cca9925b 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];