From 73abc62794b7cce08ab260dcaef88c9febc4b959 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 29 Dec 2005 21:59:54 +0000 Subject: avoid sprint to keep bad utf (marco gaddoni) --- src/cmd/vac/vac.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/cmd/vac') diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c index 7b12f83e..9ff3d12a 100644 --- a/src/cmd/vac/vac.c +++ b/src/cmd/vac/vac.c @@ -609,8 +609,12 @@ vacdir(DirSink *dsink, int fd, char *lname, char *sname, VacFile *vf) continue; ln = vtmalloc(strlen(lname) + strlen(name) + 2); sn = vtmalloc(strlen(sname) + strlen(name) + 2); - sprint(ln, "%s/%s", lname, name); - sprint(sn, "%s/%s", sname, name); + strcpy(ln, lname); + strcat(ln, "/"); + strcat(ln, name); + strcpy(sn, sname); + strcat(sn, "/"); + strcat(sn, name); if(vf != nil) vvf = vacfilewalk(vf, name); else -- cgit v1.2.3