code: drawterm

Download patch

ref: f2f537484accfc6356d01c9e42d81e76d1c4938a
parent: 788f65497a85ff7cb02fe53189f3dccdc6bddc77
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Nov 25 18:38:05 EST 2019

cmd(3): encode empty argument as "" for win32

--- a/kern/win32.c
+++ b/kern/win32.c
@@ -260,7 +260,7 @@
 	for(p = s; (c = *p) != 0; p++)
 		if(strchr(" \t\n\r\"", c) != nil)
 			break;
-	if(c == 0){
+	if(c == 0 && p != s){
 		memmove(d, s, n+1);
 		return d;
 	}