From: Loic Dachary Date: Mon, 15 Dec 2014 11:27:17 +0000 (+0100) Subject: decoder: allow for path len > 100 characters X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=63ffdaad4953f5c7822fad629d442bec158c8ac9;p=jerasure.git decoder: allow for path len > 100 characters It's not that uncommon to have path longer than 100 characters. Signed-off-by: Loic Dachary --- 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]));