summaryrefslogtreecommitdiff
path: root/lib9/rerrstr.c
blob: ebddaf9b42772722817a2c23eb391ca4c205ff5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "lib9.h"

void
rerrstr(char *buf, uint nbuf)
{
	char tmp[ERRMAX];

	tmp[0] = 0;
	errstr(tmp, sizeof tmp);
	utfecpy(buf, buf+nbuf, tmp);
	errstr(tmp, sizeof tmp);
}