Increase dbuf size.
[doldaconnect.git] / config / tthsum.c
index 18481c5..dd20521 100644 (file)
@@ -48,7 +48,7 @@ struct tigertreehash {
     int depth;
 };
 
-char buf[32768], dbuf[512];
+char buf[32768], dbuf[8192];
 
 static char *base64set = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
 static int base64rev[] = {
@@ -618,6 +618,7 @@ int main(int argc, char **argv)
                }
                memcpy(&tth.block, dbuf, tth.offset);
                fclose(state);
+               unlink(statefile);
            }
        }
        while(1) {