From 3c4b754037391ecfbb6c9754ba5a2a6fef3829bc Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Sun, 4 Jul 1993 16:03:23 -0800 Subject: [PATCH 1/1] sprintf -> snprintf (gcc lint) SCCS-vsn: lib/libc/locale/setlocale.c 5.4 --- usr/src/lib/libc/locale/setlocale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/src/lib/libc/locale/setlocale.c b/usr/src/lib/libc/locale/setlocale.c index e50d0e5347..824d2005a1 100644 --- a/usr/src/lib/libc/locale/setlocale.c +++ b/usr/src/lib/libc/locale/setlocale.c @@ -9,7 +9,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)setlocale.c 8.1 (Berkeley) %G%"; +static char sccsid[] = "@(#)setlocale.c 5.4 (Berkeley) %G%"; #endif /* LIBC_SCCS and not lint */ #include @@ -195,7 +195,7 @@ loadlocale(category) /* * Some day we will actually look at this file. */ - (void)sprintf(name, sizeof(name), "%s/%s/%s", + (void)snprintf(name, sizeof(name), "%s/%s/%s", PathLocale, new_categories[category], categories[category]); switch (category) { -- 2.20.1