[hackers] [PATCH] Script text shouldn't go through formatted conversion

From: nzl <uruabi_AT_gmail.com>
Date: Thu, 22 Feb 2018 03:26:06 +0800

---
 surf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/surf.c b/surf.c
index 0f8b9c9..940a6ad 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -917,7 +917,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);
 }
 
-- 
2.15.1
Received on Wed Feb 21 2018 - 20:26:06 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 21 2018 - 20:36:27 CET