sprintf -> snprintf (gcc lint)
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 5 Jul 1993 00:03:23 +0000 (16:03 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 5 Jul 1993 00:03:23 +0000 (16:03 -0800)
SCCS-vsn: lib/libc/locale/setlocale.c 5.4

usr/src/lib/libc/locale/setlocale.c

index e50d0e5..824d200 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #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 <limits.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <limits.h>
@@ -195,7 +195,7 @@ loadlocale(category)
        /*
         * Some day we will actually look at this file.
         */
        /*
         * 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) {
            PathLocale, new_categories[category], categories[category]);
 
        switch (category) {