Forgot to add a null character at the end.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
static char winid[64];
static gboolean usingproxy = 0;
static char togglestat[5];
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,
static void beforerequest(WebKitWebView *w, WebKitWebFrame *f,
WebKitWebResource *r, WebKitNetworkRequest *req,
getpagestat(Client *c) {
const char *uri = geturi(c);
getpagestat(Client *c) {
const char *uri = geturi(c);
- if(strstr(uri, "https://") == uri)
+ if(strstr(uri, "https://") == uri) {
pagestat[0] = c->sslfailed ? 'U' : 'T';
pagestat[0] = c->sslfailed ? 'U' : 'T';
pagestat[1] = usingproxy ? 'P' : '-';
pagestat[1] = usingproxy ? 'P' : '-';