git.samba.org
/
obnox
/
wireshark
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More rewrite of prohibited APIs (sprintf, strcpy, strcat).
[obnox/wireshark/wip.git]
/
tap-rpcstat.c
diff --git
a/tap-rpcstat.c
b/tap-rpcstat.c
index b544abf50d3d8019dfa17a061bf4ba93d3056f3b..617ad77fa3b54470d72c99d648f3bd36686881d1 100644
(file)
--- a/
tap-rpcstat.c
+++ b/
tap-rpcstat.c
@@
-293,8
+293,7
@@
rpcstat_init(const char *optarg, void* userdata _U_)
rs->program=program;
rs->version=version;
if(filter){
- rs->filter=g_malloc(strlen(filter)+1);
- strcpy(rs->filter, filter);
+ rs->filter=g_strdup(filter);
} else {
rs->filter=NULL;
}