]> git.dolda2000.com Git - doldaconnect.git/blobdiff - config/tthsum.c
Increase dbuf size.
[doldaconnect.git] / config / tthsum.c
index 18481c543d02190959dd08959242a306684d00cc..dd20521e6473519374c47ffd6df89624b97fd958 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) {