diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-01 01:33:03 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-01 01:33:03 +0200 |
commit | a37410cbddfadca651c795e9817f66c54374a943 (patch) | |
tree | 56794f505615a0f6f205f4f070dc343b5ae19287 /sysdep | |
parent | 221135d6bf256c85b4aeb08881d6262f6eaadff4 (diff) | |
download | bird-a37410cbddfadca651c795e9817f66c54374a943.tar bird-a37410cbddfadca651c795e9817f66c54374a943.zip |
Use bsprintf() instead of sprintf().
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 1ee1c07..7857a27 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -288,7 +288,7 @@ tm_format_date(char *x, bird_clock_t t) struct tm *tm; tm = localtime(&t); - sprintf(x, "%02d-%02d-%04d", tm->tm_mday, tm->tm_mon+1, tm->tm_year+1900); + bsprintf(x, "%02d-%02d-%04d", tm->tm_mday, tm->tm_mon+1, tm->tm_year+1900); } void |