Skip to content

Commit 68a18af

Browse files
committed
Fix SetupPath() - terminating '\0'
1 parent 4d81212 commit 68a18af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libnffile/flist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@ int SetupPath(struct tm *now, const char *dataDir, unsigned subDir, char *path)
11211121

11221122
// add final '/'
11231123
path[ret++] = '/';
1124+
path[ret] = '\0';
11241125

11251126
return ret;
11261127
} // End of SetupPath

0 commit comments

Comments
 (0)