commit d2e4989c3c5a50bffe56030b6af85f747b39a4f9
Author: nzl <[email protected]>
AuthorDate: Thu Feb 22 03:26:06 2018 +0800
Commit: Quentin Rameau <[email protected]>
CommitDate: Fri Feb 23 13:39:35 2018 +0100
Script text shouldn't go through formatted conversion
diff --git a/surf.c b/surf.c
index 95b09be..f01a91c 100644
--- 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);
}