summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <ldachary@redhat.com>2014-12-15 12:27:17 +0100
committerLoic Dachary <ldachary@redhat.com>2014-12-15 12:27:17 +0100
commit63ffdaad4953f5c7822fad629d442bec158c8ac9 (patch)
tree96b9e2af2903d9dcfd7f44296013a200ede15c0e
parent36008101d5fd1e3d19230828c0eb231869569893 (diff)
downloadjerasure-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>
-rw-r--r--Examples/decoder.c4
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]));