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
parent
36008101d5
commit
63ffdaad49
|
@ -138,8 +138,8 @@ int main (int argc, char **argv) {
|
||||||
fprintf(stderr, "usage: inputfile\n");
|
fprintf(stderr, "usage: inputfile\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
curdir = (char *)malloc(sizeof(char)*100);
|
curdir = (char *)malloc(sizeof(char)*1000);
|
||||||
getcwd(curdir, 100);
|
assert(curdir == getcwd(curdir, 1000));
|
||||||
|
|
||||||
/* Begin recreation of file names */
|
/* Begin recreation of file names */
|
||||||
cs1 = (char*)malloc(sizeof(char)*strlen(argv[1]));
|
cs1 = (char*)malloc(sizeof(char)*strlen(argv[1]));
|
||||||
|
|
Loading…
Reference in New Issue