defrag.c is found in the imap-uw powertools, at: ftp://ftp.cac.washington.edu/mail/powertoos/defrag.tar.Z
and is described in this posting to the list: https://mailman2.u.washington.edu/mailman/htdig/imap-uw/2005-December/000372 .html The single call to malloc in defrag.c is incorrect; written as: ... malloc (strlen (argv[1] + 7)) ... it should be: ... malloc (strlen (argv[1]) + 7) ... I found this when I added calls to lockfile_create() and lockfile_remove() to defrag.c. Ken Johnson $ diff defrag.c.orig defrag.c 27c27 < else if (!(tmpfile = (char *) malloc (strlen (argv[1] + 7)))) --- > else if (!(tmpfile = (char *) malloc (strlen (argv[1]) + 7))) _______________________________________________ Imap-uw mailing list [email protected] http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
