summaryrefslogtreecommitdiff
path: root/lib9
diff options
context:
space:
mode:
Diffstat (limited to 'lib9')
-rw-r--r--lib9/getcallerpc-Linux-386.S1
-rw-r--r--lib9/utfecpy.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib9/getcallerpc-Linux-386.S b/lib9/getcallerpc-Linux-386.S
index 71b58781..ae817758 100644
--- a/lib9/getcallerpc-Linux-386.S
+++ b/lib9/getcallerpc-Linux-386.S
@@ -1,5 +1,4 @@
.file "getcallerpc-Linux-386.S"
- .text
.type getcallerpc,@function
.global getcallerpc
getcallerpc:
diff --git a/lib9/utfecpy.c b/lib9/utfecpy.c
index 8ccb841c..3a5e6b4c 100644
--- a/lib9/utfecpy.c
+++ b/lib9/utfecpy.c
@@ -9,7 +9,7 @@ utfecpy(char *to, char *e, char *from)
return to;
end = memccpy(to, from, '\0', e - to);
if(end == nil){
- end = e-1;
+ end = e;
while(end>to && (*--end&0xC0)==0x80)
;
*end = '\0';