]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libc/9sys/rerrstr.c
libaml: fix gc bug, need to amltake()/amldrop() temporary buffer
[plan9front.git] / sys / src / libc / 9sys / rerrstr.c
1 #include <u.h>
2 #include <libc.h>
3
4 void
5 rerrstr(char *buf, uint nbuf)
6 {
7         char tmp[ERRMAX];
8
9         tmp[0] = 0;
10         errstr(tmp, sizeof tmp);
11         utfecpy(buf, buf+nbuf, tmp);
12         errstr(tmp, sizeof tmp);
13 }