pidgin/pidgin

Use a larger buffer size for untarred filenames.
release-2.x.y
2014-03-01, Mark Doliner
89c89c449595
Parents 1bb4759f7b9b
Children 8f870b9011c9
Use a larger buffer size for untarred filenames.

Only used for untarring smiley themes on Windows.
I suspect this won't affect anything. 256 just seems very
small. 4096 seems less likely to lead to truncated filenames
and I'm not worried about trying to open a filename that's
too long for the OS--I think this code handles that sanely.
--- a/pidgin/win32/untar.c Sat Mar 01 10:29:22 2014 -0800
+++ b/pidgin/win32/untar.c Sat Mar 01 16:35:47 2014 -0800
@@ -323,7 +323,7 @@
/* list files in an archive, and optionally extract them as well */
static int untar_block(Uchar_t *blk) {
- static char nbuf[256];/* storage space for prefix+name, combined */
+ static char nbuf[4096];/* storage space for prefix+name, combined */
static char *name,*n2;/* prefix and name, combined */
static int first = 1;/* Boolean: first block of archive? */
long sum; /* checksum for this block */