aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vac
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-12-29 21:59:54 +0000
committerrsc <devnull@localhost>2005-12-29 21:59:54 +0000
commit73abc62794b7cce08ab260dcaef88c9febc4b959 (patch)
tree498f2952cf8d9899a49f936f7278ddd73233c9fa /src/cmd/vac
parent0dbd8726fe2b94ae3be1d1403aa1732679570cb0 (diff)
downloadplan9port-73abc62794b7cce08ab260dcaef88c9febc4b959.tar.gz
plan9port-73abc62794b7cce08ab260dcaef88c9febc4b959.tar.bz2
plan9port-73abc62794b7cce08ab260dcaef88c9febc4b959.zip
avoid sprint to keep bad utf (marco gaddoni)
Diffstat (limited to 'src/cmd/vac')
-rw-r--r--src/cmd/vac/vac.c8
1 files changed, 6 insertions, 2 deletions
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