]> git.ipfire.org Git - thirdparty/sarg.git/commit
Correctly append a suffix to the mangled temporary file name
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 28 Jul 2011 15:21:20 +0000 (15:21 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 28 Jul 2011 15:21:20 +0000 (15:21 +0000)
commit815456844dc6b7c13387086cff9a443cb2cd153b
tree433a2af9794479d78e2656d9bb69b07ffa4ddea6
parentf27d281dcccf658b7eecb3006cca8d7c1b664e37
Correctly append a suffix to the mangled temporary file name

When two users end up with the same mangled temporary file name, a suffix is
supposed to be added at the end of the new file name to make it distinct from the
previous one but the suffix was added one byte too far making it useless.

The result was that the log entries of two or more users were written into the
same file overwritting each other's data and corrupting the report.

Thanks to Mark Dennison for reporting this bug.
userinfo.c