Eliminate sprintf
Obtained from:OpenBSD (theo de raadt)
This commit is contained in:
parent
c22b4eba27
commit
69e8633347
@ -129,6 +129,7 @@ _tztab(zone,dst)
|
||||
}
|
||||
else
|
||||
sign = '-';
|
||||
(void)sprintf(czone,"GMT%c%d:%02d",sign,zone / 60,zone % 60);
|
||||
(void)snprintf(czone, sizeof(czone),
|
||||
"GMT%c%d:%02d",sign,zone / 60,zone % 60);
|
||||
return(czone);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user