Script text shouldn't go through formatted conversion

This commit is contained in:
nzl 2018-02-22 03:26:06 +08:00 committed by Quentin Rameau
parent 7817d0ec83
commit d2e4989c3c
1 changed files with 1 additions and 1 deletions

2
surf.c
View File

@ -921,7 +921,7 @@ runscript(Client *c)
gsize l; gsize l;
if (g_file_get_contents(scriptfile, &script, &l, NULL) && l) if (g_file_get_contents(scriptfile, &script, &l, NULL) && l)
evalscript(c, script); evalscript(c, "%s", script);
g_free(script); g_free(script);
} }