[hackers] [surf] Fix extra newline, and add -g where other switches are forwarded. || Ben Woolley

From: <git_AT_suckless.org>
Date: Sat, 17 Jan 2015 20:51:10 +0100 (CET)

commit 24ec46fc241b655bf91a4529fa164ae9703d4eb6
Author: Ben Woolley <tautolog_AT_gmail.com>
Date: Wed Jan 7 15:41:07 2015 -0800

    Fix extra newline, and add -g where other switches are forwarded.
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

diff --git a/surf.c b/surf.c
index 6f71657..82cf822 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -957,9 +957,11 @@ newwindow(Client *c, const Arg *arg, gboolean noembed) {
                 cmd[i++] = "-b";
         if(embed && !noembed) {
                 cmd[i++] = "-e";
- snprintf(tmp, LENGTH(tmp), "%u\n", (int)embed);
+ snprintf(tmp, LENGTH(tmp), "%u", (int)embed);
                 cmd[i++] = tmp;
         }
+ if(!allowgeolocation)
+ cmd[i++] = "-g";
         if(!loadimages)
                 cmd[i++] = "-i";
         if(kioskmode)
Received on Sat Jan 17 2015 - 20:51:10 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 17 2015 - 21:00:18 CET