From c2a928f425c589c8ff0569c29b0677a69d8e3fd9 Mon Sep 17 00:00:00 2001 From: skeezix Date: Mon, 1 Mar 2010 00:01:53 -0500 Subject: [PATCH] Slightly larger icon read/write buffer --- lib/pnd_desktop.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/pnd_desktop.c b/lib/pnd_desktop.c index f3f4b10..c954bdf 100644 --- a/lib/pnd_desktop.c +++ b/lib/pnd_desktop.c @@ -186,9 +186,11 @@ unsigned char pnd_emit_dotdesktop ( char *targetpath, char *pndrun, pnd_disco_t } unsigned char pnd_emit_icon ( char *targetpath, pnd_disco_t *p ) { + //#define BITLEN (8*1024) +#define BITLEN (64*1024) char buffer [ FILENAME_MAX ]; // target filename char from [ FILENAME_MAX ]; // source filename - char bits [ 8 * 1024 ]; + char bits [ BITLEN ]; unsigned int bitlen; FILE *pnd, *target; @@ -236,8 +238,8 @@ unsigned char pnd_emit_icon ( char *targetpath, pnd_disco_t *p ) { while ( len ) { - if ( len > (8*1024) ) { - bitlen = (8*1024); + if ( len > (BITLEN) ) { + bitlen = (BITLEN); } else { bitlen = len; } -- 2.39.5