Changed string utility functions to be glib: sprintf->g_snprintf, strcmp_>g_strcmp0, strncat->strlcat, strcat->strlcat, sprintf->g_snprintf, strcpy->strlcpy.