aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-01-24 19:09:30 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-01-24 19:09:30 +0000
commita9c6d37d728f408f56d6ce816545561a42098e1b (patch)
tree68be99065f8dbc6765c69edb1379cebadcada67d /editcap.c
parentfa49cc0d673b6d6d2bca0286c54b2798863c6b91 (diff)
Fixed some malloc -> g_malloc, free -> g_free, strdup -> g_strdup.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24179 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index c7ec2d7147..0230aee34d 100644
--- a/editcap.c
+++ b/editcap.c
@@ -618,7 +618,7 @@ int main(int argc, char *argv[])
out_frame_type = wtap_file_encap(wth);
if (split_packet_count > 0) {
- filename = (char *) malloc(strlen(argv[optind+1]) + 20);
+ filename = (char *) g_malloc(strlen(argv[optind+1]) + 20);
if (!filename) {
exit(5);
}