Introduction
Introduction Statistics Contact Development Disclaimer Help
tFixed a bug in pagestat - surf - customized build of surf, the suckless webkit…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 053a8f1a73b8a3fe4e090dd12fe05e28f4594ab3
parent ba634ea8e3b884c4610c89d4491e70729d53bc43
Author: Jens Nyberg <[email protected]>
Date: Fri, 15 Feb 2013 00:57:36 +0100
Fixed a bug in pagestat
Forgot to add a null character at the end.
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M surf.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/surf.c b/surf.c
t@@ -84,7 +84,7 @@ static gboolean showxid = FALSE;
static char winid[64];
static gboolean usingproxy = 0;
static char togglestat[5];
-static char pagestat[2];
+static char pagestat[3];
static void beforerequest(WebKitWebView *w, WebKitWebFrame *f,
WebKitWebResource *r, WebKitNetworkRequest *req,
t@@ -1066,12 +1066,15 @@ static void
getpagestat(Client *c) {
const char *uri = geturi(c);
- if(strstr(uri, "https://") == uri)
+ if(strstr(uri, "https://") == uri) {
pagestat[0] = c->sslfailed ? 'U' : 'T';
- else
+ } else {
pagestat[0] = '-';
+ }
pagestat[1] = usingproxy ? 'P' : '-';
+ pagestat[2] = '\0';
+
}
static void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.