From: Frederic Marchal Date: Wed, 8 Oct 2014 18:54:40 +0000 (+0200) Subject: Fix a problem with log file names storage X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0691fa241b8026d16d5885b2b573eddcff897f10;p=thirdparty%2Fsarg.git Fix a problem with log file names storage Log file names are stored in a tree to save space. They have to be merged back when the full file name is required. But an error prevented the file name from being reconstructed if two files were stored in different directories and one node of the tree has a lower depth than the next one. --- diff --git a/filelist.c b/filelist.c index d53313a..60cabc8 100644 --- a/filelist.c +++ b/filelist.c @@ -383,7 +383,7 @@ static void FileListIter_GetNext(struct _FileListIterator *FIter) { if (FIter->Level>=FIter->TreeDepth) break; Dir=Dir->Child; - FIter->DirNodes[FIter->Level++].Dir=Dir; + FIter->DirNodes[++FIter->Level].Dir=Dir; } break; }