Eliminate sprintf

Obtained from:OpenBSD (theo de raadt)
This commit is contained in:
imp 1998-01-21 21:46:36 +00:00
parent c22b4eba27
commit 69e8633347

View File

@ -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);
}