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 /tap-protohierstat.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 'tap-protohierstat.c')
-rw-r--r-- | tap-protohierstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-protohierstat.c b/tap-protohierstat.c index 415c2f0d71..7f897b930a 100644 --- a/tap-protohierstat.c +++ b/tap-protohierstat.c @@ -200,8 +200,7 @@ protohierstat_init(const char *optarg, void* userdata _U_) rs=new_phs_t(NULL); if(filter){ - rs->filter=g_malloc(strlen(filter)+1); - strcpy(rs->filter, filter); + rs->filter=g_strdup(filter); } else { rs->filter=NULL; } |