tScript text shouldn't go through formatted conversion - surf - customized build of surf, the suckless webkit browser (HTM) git clone git://src.adamsgaard.dk/surf (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit d2e4989c3c5a50bffe56030b6af85f747b39a4f9 (DIR) parent 7817d0ec83b16dad6ad4f68039a58c371dbca38e (HTM) Author: nzl <uruabi@gmail.com> Date: Thu, 22 Feb 2018 03:26:06 +0800 Script text shouldn't go through formatted conversion Diffstat: M surf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/surf.c b/surf.c t@@ -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); }