use g_warning not printf

This commit is contained in:
Dana Jansens 2003-03-26 12:12:33 +00:00
parent ded198f74f
commit a6815038d6

View file

@ -44,7 +44,7 @@ static void stringvalue()
entry.type = Config_String;
entry.value.string = g_strdup(cparsetext+1); /* drop the left quote */
if (entry.value.string[cparseleng-2] != '"')
printf("warning: improperly terminated string on line %d\n",
g_warning("improperly terminated string on line %d",
lineno);
else
entry.value.string[cparseleng-2] = '\0';