shithub: riscv

Download patch

ref: 70cc0a7b44ad70929a00565b03327296d2e64c52
parent: c856165c90201614ce766433a2e1224cf71db695
author: B. Atticus Grobe <grobe0ba@tcp80.org>
date: Mon Aug 1 13:09:18 EDT 2022

disk/mkext: fix nil dereference in arg parsing

--- a/sys/src/cmd/disk/mkext.c
+++ b/sys/src/cmd/disk/mkext.c
@@ -39,7 +39,7 @@
 	namep = name;
 	ARGBEGIN{
 	case 'd':
-		p = ARGF();
+		p = EARGF(usage());
 		if(strlen(p) >= LEN)
 			error("destination fs name too long\n");
 		strcpy(name, p);