diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-03 08:31:04 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-02-03 08:31:04 +0000 |
commit | c8f8cb5244bb03a911cd2e425cc168635a55285e (patch) | |
tree | 6e451219360a1f5f672fbb5984c3af5299616411 /plugins | |
parent | c497d57a74c6fcc0df93a8c5339434a7212500af (diff) |
Just use g_strdup_printf(), rather than doing it ourselves.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35780 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimaxasncp/wimaxasncp_dict.l | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/wimaxasncp/wimaxasncp_dict.l b/plugins/wimaxasncp/wimaxasncp_dict.l index 1a81a823f8..cdd225b5bb 100644 --- a/plugins/wimaxasncp/wimaxasncp_dict.l +++ b/plugins/wimaxasncp/wimaxasncp_dict.l @@ -585,10 +585,7 @@ static FILE *wimaxasncp_dict_open( gchar *fname; if (system_directory) { - int len = strlen(system_directory) + strlen(filename) - + strlen(G_DIR_SEPARATOR_S) + 1; - fname = g_malloc(len); - g_snprintf(fname, len, "%s%s%s", + fname = g_strdup_printf("%s%s%s", system_directory, G_DIR_SEPARATOR_S,filename); } else |