mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
more bsd tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32485 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dbaa646d12
commit
dbf4119553
19 changed files with 91 additions and 68 deletions
|
@ -783,7 +783,7 @@ static NSString *locale_sep()
|
|||
char *from = buf;
|
||||
char *to;
|
||||
|
||||
sprintf(buf, "%g", 1.2);
|
||||
snprintf(buf, sizeof(buf), "%g", 1.2);
|
||||
if (*from == '1') from++;
|
||||
to = from;
|
||||
while (*to != '\0' && *to != '2')
|
||||
|
@ -1463,12 +1463,12 @@ NSDictionary *locale)
|
|||
|
||||
if (specs[nspecs_done].info.is_long_double)
|
||||
{
|
||||
sprintf(buf2, buf1,
|
||||
snprintf(buf2, sizeof(buf2), buf1,
|
||||
args_value[specs[nspecs_done].data_arg].pa_long_double);
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(buf2, buf1,
|
||||
snprintf(buf2, sizeof(buf2), buf1,
|
||||
args_value[specs[nspecs_done].data_arg].pa_double);
|
||||
}
|
||||
|
||||
|
@ -1581,12 +1581,12 @@ NSDictionary *locale)
|
|||
|
||||
if (specs[nspecs_done].info.is_long_double)
|
||||
{
|
||||
sprintf(buf2, buf1,
|
||||
snprintf(buf2, sizeof(buf2), buf1,
|
||||
args_value[specs[nspecs_done].data_arg].pa_long_double);
|
||||
}
|
||||
else
|
||||
{
|
||||
sprintf(buf2, buf1,
|
||||
snprintf(buf2, sizeof(buf2), buf1,
|
||||
args_value[specs[nspecs_done].data_arg].pa_double);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue