diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-29 11:16:22 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-10-29 11:16:22 +0000 |
commit | d33a0652e8838ab6440c25d58206a31102090fc0 (patch) | |
tree | 4769b31917dac561e509b813b7ebed975a92ba02 /epan/diam_dict.l | |
parent | 67dc33c5cacfaec3a6efe1cefef0c928f7e29c1c (diff) |
From Eric Sesterhenn via bug 4175:
Use g_strdup to allocate filename.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30755 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/diam_dict.l')
-rw-r--r-- | epan/diam_dict.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/diam_dict.l b/epan/diam_dict.l index 0b643599b4..5e9809ae1d 100644 --- a/epan/diam_dict.l +++ b/epan/diam_dict.l @@ -604,7 +604,7 @@ static FILE* ddict_open(const char* system_directory, const char* filename) { fname = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", system_directory,filename); } else { - fname = strdup(filename); + fname = g_strdup(filename); } fh = ws_fopen(fname,"r"); |