[hackers] [surf/surf-webkit2] Fix togglestats array || Quentin Rameau

From: <git_AT_suckless.org>
Date: Fri, 21 May 2021 00:18:38 +0200 (CEST)

commit 761ea9e4c6c4d8aba4a4d39da9c9b4db8ac471b1
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Fri May 21 00:16:17 2021 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Fri May 21 00:16:17 2021 +0200

    Fix togglestats array

diff --git a/surf.c b/surf.c
index af0fa74..c25def7 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -240,7 +240,7 @@ static void clicknewwindow(Client *c, const Arg *a, WebKitHitTestResult *h);
 static void clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h);
 
 static char winid[64];
-static char togglestats[12];
+static char togglestats[11];
 static char pagestats[2];
 static Atom atoms[AtomLast];
 static Window embed;
_AT_@ -668,11 +668,10 @@ gettogglestats(Client *c)
         togglestats[3] = curconfig[DiskCache].val.i ? 'D' : 'd';
         togglestats[4] = curconfig[LoadImages].val.i ? 'I' : 'i';
         togglestats[5] = curconfig[JavaScript].val.i ? 'S' : 's';
- togglestats[7] = curconfig[Style].val.i ? 'M' : 'm';
- togglestats[8] = curconfig[FrameFlattening].val.i ? 'F' : 'f';
- togglestats[9] = curconfig[Certificate].val.i ? 'X' : 'x';
- togglestats[10] = curconfig[StrictTLS].val.i ? 'T' : 't';
- togglestats[11] = '\0';
+ togglestats[6] = curconfig[Style].val.i ? 'M' : 'm';
+ togglestats[7] = curconfig[FrameFlattening].val.i ? 'F' : 'f';
+ togglestats[8] = curconfig[Certificate].val.i ? 'X' : 'x';
+ togglestats[9] = curconfig[StrictTLS].val.i ? 'T' : 't';
 }
 
 void
Received on Fri May 21 2021 - 00:18:38 CEST

This archive was generated by hypermail 2.3.0 : Fri May 21 2021 - 00:24:29 CEST