decoder: allow for path len > 100 characters

It's not that uncommon to have path longer than 100 characters.

Signed-off-by: Loic Dachary <loic@dachary.org>
master
Loic Dachary 2014-12-15 12:27:17 +01:00
parent 36008101d5
commit 63ffdaad49
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ int main (int argc, char **argv) {
fprintf(stderr, "usage: inputfile\n");
exit(0);
}
curdir = (char *)malloc(sizeof(char)*100);
getcwd(curdir, 100);
curdir = (char *)malloc(sizeof(char)*1000);
assert(curdir == getcwd(curdir, 1000));
/* Begin recreation of file names */
cs1 = (char*)malloc(sizeof(char)*strlen(argv[1]));