libc: fix runestrecpy() return value (thanks spew)

front
cinap_lenrek 2016-03-16 17:27:00 +01:00
parent 7f224a8f6d
commit 5aaa7240a2
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ runestrecpy(Rune *s1, Rune *es1, Rune *s2)
while(*s1++ = *s2++){
if(s1 == es1){
*--s1 = '\0';
s1[-1] = '\0';
break;
}
}
return s1;
return s1-1;
}