blob: 9c7ca88882bfe504a2e1f5b31540e86b38135583 [file] [log] [blame]
--- newlib-1.20.0/newlib/libc/locale/ldpart.c 2008-11-24 13:27:33.000000000 -0800
+++ newlib-1.20.0/newlib/libc/locale/ldpart.c.new 2017-06-23 11:07:01.323063165 -0700
@@ -94,7 +94,7 @@
if (!_PathLocale)
goto no_locale;
/* Range checking not needed, 'name' size is limited */
- strcpy(filename, _PathLocale);
+ strncpy(filename, _PathLocale, PATH_MAX);
strcat(filename, "/");
strcat(filename, name);
strcat(filename, "/");