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 /wiretap/catapult_dct2000.c | |
parent | e59b5d6b8a963263b0c2dcf163e07b4318737d71 (diff) |
More rewrite of prohibited APIs (sprintf, strcpy, strcat).
svn path=/trunk/; revision=24258
Diffstat (limited to 'wiretap/catapult_dct2000.c')
-rw-r--r-- | wiretap/catapult_dct2000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/catapult_dct2000.c b/wiretap/catapult_dct2000.c index 16e3550781..39c0eb8c0c 100644 --- a/wiretap/catapult_dct2000.c +++ b/wiretap/catapult_dct2000.c @@ -331,7 +331,7 @@ gboolean catapult_dct2000_read(wtap *wth, int *err, gchar **err_info _U_, char timestamp_string[32]; gint64 *pkey = NULL; - sprintf(timestamp_string, "%d.%04d", seconds, useconds/100); + g_snprintf(timestamp_string, 32, "%d.%04d", seconds, useconds/100); /* All packets go to Catapult DCT2000 stub dissector */ wth->phdr.pkt_encap = WTAP_ENCAP_CATAPULT_DCT2000; @@ -470,7 +470,7 @@ catapult_dct2000_seek_read(wtap *wth, gint64 seek_off, int n; int stub_offset = 0; char timestamp_string[32]; - sprintf(timestamp_string, "%d.%04d", seconds, useconds/100); + g_snprintf(timestamp_string, 32, "%d.%04d", seconds, useconds/100); /* Make sure all packets go to catapult dct2000 dissector */ wth->phdr.pkt_encap = WTAP_ENCAP_CATAPULT_DCT2000; |