From 3b3c8001fe35f2d960a45abc9490c3d46e718e16 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Thu, 6 Jun 2013 17:42:36 +0200 Subject: [PATCH] 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 --- lib/subordinateio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.40.0