diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-03 15:38:20 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-02-03 15:38:20 +0000 |
commit | 47d744b59da83744623bea39c006eb7e2ec02de9 (patch) | |
tree | 17d9ec1526a37c793ee3d7cbd031091d1867dd7f /strerror.c | |
parent | e59b5d6b8a963263b0c2dcf163e07b4318737d71 (diff) | |
download | wireshark-47d744b59da83744623bea39c006eb7e2ec02de9.tar.gz wireshark-47d744b59da83744623bea39c006eb7e2ec02de9.tar.bz2 wireshark-47d744b59da83744623bea39c006eb7e2ec02de9.zip |
More rewrite of prohibited APIs (sprintf, strcpy, strcat).
svn path=/trunk/; revision=24258
Diffstat (limited to 'strerror.c')
-rw-r--r-- | strerror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strerror.c b/strerror.c index 93cc02b9a3..34dcad88bb 100644 --- a/strerror.c +++ b/strerror.c @@ -35,7 +35,7 @@ strerror(int errnum) static char errbuf[5+1+11+1]; /* "Error %d" */ if (errnum < 0 || errnum >= sys_nerr) { - sprintf(errbuf, "Error %d", errnum); + g_snprintf(errbuf, 18, "Error %d", errnum); return errbuf; } else return sys_errlist[errnum]; |