shithub: purgatorio

Download patch

ref: 254b07675e1a5348f2a8723f55e6b5b1b18a4721
parent: db1eb844461b07a25ca49117851fa874fd88e065
author: henesy <devnull@localhost>
date: Thu Jun 3 04:34:19 EDT 2021

qtokenize(2): fix list order

--- a/appl/lib/string.b	Thu Jun  3 03:27:57 2021
+++ b/appl/lib/string.b	Thu Jun  3 04:34:19 2021
@@ -602,7 +602,7 @@
 		' ' or '\t' or '\n' =>
 			if(word == nil)
 				continue;
-			out = word :: out;
+			out = append(word, out);
 			word = nil;
 
 		* =>
@@ -613,7 +613,7 @@
 		return (nil, "missing quote");
 
 	if(word != nil)
-		out = word :: out;
+		out = append(word, out);
 
 	return (out, nil); 
 }