shithub: trueawk

Download patch

ref: 11332a42e59f40f0b06760515e8e0bc7364bfc14
parent: ae724691436df6353bd7732d6255eb931b075daf
author: ozan yigit <ozan.yigit@gmail.com>
date: Sun Apr 21 20:37:46 EDT 2024

scan bug [newline] in split in the case the separator is a single character.

--- a/run.c
+++ b/run.c
@@ -1827,7 +1827,7 @@
 		for (;;) {
 			n++;
 			t = s;
-			while (*s != sep && *s != '\n' && *s != '\0')
+			while (*s != sep && *s != '\0')
 				s++;
 			temp = *s;
 			setptr(s, '\0');
--