diff options
author | Pixel <pixel@nobis-crew.org> | 2009-05-05 01:29:24 +0200 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-05-05 01:29:24 +0200 |
commit | 2d0d6175208b8567b8bb306ebba79da1fe7f1e3c (patch) | |
tree | e3acc36519987e4d3cb09058ed0c22bd9126cf01 | |
parent | 7f340539163522da8d9f325b8297cbdf73d19690 (diff) |
Securing mpqlib_fs_filelist output.
-rw-r--r-- | mpq-fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -151,6 +151,9 @@ int mpqlib_fs_filelist(char * buffer) { *(p++) = '\n'; } } while (hnext(hash_table)); + + if (p) + *p = 0; return r_size; } |