netwmicon_ff - increase buffer size to 16
This commit is contained in:
parent
6a5561cd76
commit
25a28a61a3
|
@ -4,7 +4,7 @@ setnetwmicon(void)
|
||||||
/* use a farbfeld image to set _NET_WM_ICON */
|
/* use a farbfeld image to set _NET_WM_ICON */
|
||||||
FILE* file = fopen(ICON, "r");
|
FILE* file = fopen(ICON, "r");
|
||||||
if (file) {
|
if (file) {
|
||||||
unsigned char buf[8] = {0};
|
unsigned char buf[16] = {0};
|
||||||
|
|
||||||
int hasdata = fread(buf,1,16,file);
|
int hasdata = fread(buf,1,16,file);
|
||||||
if (memcmp(buf,"farbfeld",8)) {
|
if (memcmp(buf,"farbfeld",8)) {
|
||||||
|
|
Loading…
Reference in New Issue