mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
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
Block a user