Just use g_strdup_printf(), rather than doing it ourselves.

svn path=/trunk/; revision=35780
This commit is contained in:
Guy Harris 2011-02-03 08:31:04 +00:00
parent 133e639dab
commit 3eecbb3248
1 changed files with 1 additions and 4 deletions

View File

@ -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