{
const GtkCssToken *token;
gboolean result = FALSE;
- char *function_name;
+ char function_name[64];
guint arg;
token = gtk_css_parser_get_token (self);
g_return_val_if_fail (gtk_css_token_is (token, GTK_CSS_TOKEN_FUNCTION), FALSE);
- function_name = g_strdup (token->string.string);
+ g_strlcpy (function_name, token->string.string, 64);
gtk_css_parser_start_block (self);
arg = 0;
}
gtk_css_parser_end_block (self);
- g_free (function_name);
return result;
}
* Checks if the next token is a function with the given @name.
*
* Returns: %TRUE if the next token is a function with the given @name
- **/
+ */
gboolean
gtk_css_parser_has_function (GtkCssParser *self,
const char *name)