diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..a53e450 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,13 @@ +2010-08-20 10:49 Timo Bingmann + + * src/digup.c: Fixed string allocation bug causing a segfault when + using -t followed by -f parameters. + +2010-03-20 14:27 Timo Bingmann + + * src/digup.c: Changing size variable from ssize_t to long long to + enable support for large files. + +2009-11-10 14:57 Timo Bingmann + + * Initial release of 0.6.23 diff --git a/src/digup.c b/src/digup.c index 39a2941..f49b3c9 100644 --- a/src/digup.c +++ b/src/digup.c @@ -965,6 +965,8 @@ int parse_digestline(const char* line, const unsigned int linenum, struct FileIn rb_insert(g_filelist, filename, fileinfo); + gopt_digesttype = this_digesttype; + /* return +1 here to clear tempinfo. */ return 1; } @@ -2261,10 +2263,7 @@ int main(int argc, char* argv[]) break; case 'f': - if (gopt_digestfile) - free(gopt_digestfile); - - gopt_digestfile = strdup(optarg); + gopt_digestfile = optarg; break; case 'h':