diff -u -p avrdude-5.2/stk500.c.orig avrdude-5.2/stk500.c
--- avrdude-5.2/stk500.c.orig	2006-12-30 03:26:10.000000000 +0000
+++ avrdude-5.2/stk500.c	2006-12-10 23:50:25.000000000 +0000
@@ -654,7 +654,7 @@ static int stk500_loadaddr(PROGRAMMER * 
 static int stk500_paged_write(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m, 
                               int page_size, int n_bytes)
 {
-  unsigned char buf[page_size + 16];
+  unsigned char buf[page_size + 1024];
   int memtype;
   unsigned int addr;
   int a_div;

