Commit 63ffdaad4953f5c7822fad629d442bec158c8ac9

Authored by Loic Dachary
1 parent 36008101
Exists in master

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>
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
Examples/decoder.c
... ... @@ -138,8 +138,8 @@ int main (int argc, char **argv) {
138 138 fprintf(stderr, "usage: inputfile\n");
139 139 exit(0);
140 140 }
141   - curdir = (char *)malloc(sizeof(char)*100);
142   - getcwd(curdir, 100);
  141 + curdir = (char *)malloc(sizeof(char)*1000);
  142 + assert(curdir == getcwd(curdir, 1000));
143 143  
144 144 /* Begin recreation of file names */
145 145 cs1 = (char*)malloc(sizeof(char)*strlen(argv[1]));
... ...