diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-03 15:38:20 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-02-03 15:38:20 +0000 |
commit | fa849b3bb28985b022c11ff5b5a3c867563956e9 (patch) | |
tree | 17d9ec1526a37c793ee3d7cbd031091d1867dd7f /tap-smbstat.c | |
parent | fe1751928ce228617657397d98eb1122ed01db6f (diff) |
More rewrite of prohibited APIs (sprintf, strcpy, strcat).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24258 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tap-smbstat.c')
-rw-r--r-- | tap-smbstat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tap-smbstat.c b/tap-smbstat.c index aa0a2828be..5ddfaf65df 100644 --- a/tap-smbstat.c +++ b/tap-smbstat.c @@ -215,8 +215,7 @@ smbstat_init(const char *optarg,void* userdata _U_) ss=g_malloc(sizeof(smbstat_t)); if(filter){ - ss->filter=g_malloc(strlen(filter)+1); - strcpy(ss->filter, filter); + ss->filter=g_strdup(filter); } else { ss->filter=NULL; } |