- bug fix

This commit is contained in:
zolliker
2009-02-25 14:48:34 +00:00
parent 2e3c1225f8
commit 1914d04420

View File

@ -73,6 +73,7 @@ time_t LoggerGetLastLife(char *dirarg)
snprintf(path, sizeof path, "%s/lastlife.dat", dirarg); snprintf(path, sizeof path, "%s/lastlife.dat", dirarg);
fil = fopen(path, "r"); fil = fopen(path, "r");
if (fil) { if (fil) {
line[0]='\0';
fgets(line, sizeof line, fil); fgets(line, sizeof line, fil);
if (strcmp(line, LASTLOGTXT) == 0) { if (strcmp(line, LASTLOGTXT) == 0) {
fgets(line, sizeof line, fil); fgets(line, sizeof line, fil);