diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-02-03 08:31:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-02-03 08:31:04 +0000 |
commit | 3eecbb324828b24abcf2549723f703c1e2e87251 (patch) | |
tree | 6e451219360a1f5f672fbb5984c3af5299616411 | |
parent | 133e639dabac329bd6c2581e68c39021a491951c (diff) |
Just use g_strdup_printf(), rather than doing it ourselves.
svn path=/trunk/; revision=35780
-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 |