[hackers] [surf/surf-webkit2] Script text shouldn't go through formatted conversion || nzl

From: <git_AT_suckless.org>
Date: Fri, 23 Feb 2018 13:42:05 +0100 (CET)

commit d2e4989c3c5a50bffe56030b6af85f747b39a4f9
Author: nzl <uruabi_AT_gmail.com>
AuthorDate: Thu Feb 22 03:26:06 2018 +0800
Commit: Quentin Rameau <quinq_AT_fifth.space>
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
_AT_@ -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);
 }
 
Received on Fri Feb 23 2018 - 13:42:05 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 23 2018 - 13:48:40 CET