]> wimlib.net Git - wimlib/commitdiff
read_path_list_file(): Handle missing terminal newline
authorEric Biggers <ebiggers3@gmail.com>
Sun, 29 Dec 2013 21:49:34 +0000 (15:49 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 29 Dec 2013 21:49:34 +0000 (15:49 -0600)
src/pathlist.c

index 3bfec2ef062687b1810cf65a8eb3c6ff348c3fd5..ada1f302f119b1238a3d6489a1f84f140af43f4c 100644 (file)
@@ -181,6 +181,8 @@ read_path_list_file(const tchar *listfile,
        if (ret)
                return ret;
 
+       buf[buflen++] = T('\n');
+
        ret = parse_path_list_file(buf, buflen, paths_ret, num_paths_ret);
        if (ret) {
                FREE(buf);