netwmicon_ff - increase buffer size to 16

This commit is contained in:
Bakkeby 2024-03-13 11:56:11 +01:00
parent 6a5561cd76
commit 25a28a61a3
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ setnetwmicon(void)
/* use a farbfeld image to set _NET_WM_ICON */
FILE* file = fopen(ICON, "r");
if (file) {
unsigned char buf[8] = {0};
unsigned char buf[16] = {0};
int hasdata = fread(buf,1,16,file);
if (memcmp(buf,"farbfeld",8)) {