shithub: wl3d

Download patch

ref: 3b70bbe366fade45f41fed2ef13b87fa675709b5
parent: 20f3678ee28d655b1d7b8b7ca63a30c78e3aa0d6
author: qwx <>
date: Thu Jul 13 01:49:56 EDT 2017

fs: fix bopen truncating long file paths

for instance, these can occur using -f $path

--- a/fs.c
+++ b/fs.c
@@ -456,7 +456,7 @@
 static Biobuf *
 bopen(char *f, int m)
 {
-	char s[16];
+	char s[256];
 	Biobuf *bf;
 
 	snprint(s, sizeof s, "%s%s", f, ext);