diff options
-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 |