summaryrefslogtreecommitdiff
path: root/lib9
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
commit6e425a9de8c003b5a733621a6b6730ec3cc902b8 (patch)
tree314123bcab78ff295f38f85f31dc141e5fe22d15 /lib9
parent74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (diff)
20061220
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';