Commit Diff


commit - 3d9a4ec407702ad2b932c522001f1b88a36571de
commit + 2f63b34ce3d2db78052d19284337414845664b6f
blob - cf8a72840c0b31087b00b5d1bfe09ed1eb4479ad
blob + ed77449fe0df86c0f53685f3fd20ccfcb57d314e
--- lib/object_create.c
+++ lib/object_create.c
@@ -161,7 +161,7 @@ got_object_blob_create(struct got_object_id **id, cons
 		goto done;
 	}
 	for (;;) {
-		char buf[PATH_MAX];
+		char buf[PATH_MAX * 8];
 		ssize_t inlen;
 
 		if (S_ISLNK(sb.st_mode)) {