Script text shouldn't go through formatted conversion
authornzl <uruabi@gmail.com>
Wed, 21 Feb 2018 19:26:06 +0000 (03:26 +0800)
committerQuentin Rameau <quinq@fifth.space>
Fri, 23 Feb 2018 12:39:35 +0000 (13:39 +0100)
surf.c

diff --git a/surf.c b/surf.c
index 95b09be..f01a91c 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -921,7 +921,7 @@ runscript(Client *c)
        gsize l;
 
        if (g_file_get_contents(scriptfile, &script, &l, NULL) && l)
-               evalscript(c, script);
+               evalscript(c, "%s", script);
        g_free(script);
 }