diff options
author | Loic Dachary <ldachary@redhat.com> | 2014-12-15 12:27:17 +0100 |
---|---|---|
committer | Loic Dachary <ldachary@redhat.com> | 2014-12-15 12:27:17 +0100 |
commit | 63ffdaad4953f5c7822fad629d442bec158c8ac9 (patch) | |
tree | 96b9e2af2903d9dcfd7f44296013a200ede15c0e /Examples | |
parent | 36008101d5fd1e3d19230828c0eb231869569893 (diff) | |
download | jerasure-63ffdaad4953f5c7822fad629d442bec158c8ac9.tar.gz |
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>
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Examples/decoder.c b/Examples/decoder.c index 0f6e030..bd0b008 100644 --- a/Examples/decoder.c +++ b/Examples/decoder.c @@ -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])); |