shithub: drawterm

Download patch

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

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

--- a/kern/win32.c	Mon Nov 25 17:23:49 2019
+++ b/kern/win32.c	Mon Nov 25 17:38:05 2019
@@ -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;
 	}