mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-18 13:37:53 +01:00
Bash-4.3 patch 35
This commit is contained in:
1 parent
8daea13bac
commit
e57a256f4e
2 files changed
+5
-3
No files matched your search
+4
-2
@@ -78,13 +78,15 @@ stub_charset ()
|
||||
s = strrchr (locale, '.');
|
||||
if (s)
|
||||
{
|
||||
strcpy (charsetbuf, s+1);
|
||||
strncpy (charsetbuf, s+1, sizeof (charsetbuf) - 1);
|
||||
charsetbuf[sizeof (charsetbuf) - 1] = '\0';
|
||||
t = strchr (charsetbuf, '@');
|
||||
if (t)
|
||||
*t = 0;
|
||||
return charsetbuf;
|
||||
}
|
||||
strcpy (charsetbuf, locale);
|
||||
strncpy (charsetbuf, locale, sizeof (charsetbuf) - 1);
|
||||
charsetbuf[sizeof (charsetbuf) - 1] = '\0';
|
||||
return charsetbuf;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user