ref: 5aaa7240a20f34d319bee496005e2136040b8f5c
parent: 7f224a8f6d343cf0aaf162cc9b9f7d4d62ac78ac
author: cinap_lenrek <[email protected]>
date: Wed Mar 16 13:27:00 EDT 2016
libc: fix runestrecpy() return value (thanks spew)
--- a/sys/src/libc/port/runestrecpy.c
+++ b/sys/src/libc/port/runestrecpy.c
@@ -9,9 +9,9 @@
while(*s1++ = *s2++){
if(s1 == es1){
- *--s1 = '\0';
+ s1[-1] = '\0';
break;
}
}
- return s1;
+ return s1-1;
}