diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-05-27 21:02:24 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-05-27 21:02:24 +0000 |
commit | cebdf3e0be8d1cb468aab24a4463d3fa7347f97f (patch) | |
tree | 97c1e42b10486dfb3b8fad0e8f5bd7beac443b97 /usr.bin/cvs/update.c | |
parent | 9428a8091736773335d91534b73d6be543395064 (diff) |
Replace xmalloc/xsnprintf combo with xasprintf.
OK niallo@
Diffstat (limited to 'usr.bin/cvs/update.c')
-rw-r--r-- | usr.bin/cvs/update.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c index 1fc08c282f7..edcf37ec8e0 100644 --- a/usr.bin/cvs/update.c +++ b/usr.bin/cvs/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.97 2007/02/22 06:42:09 otto Exp $ */ +/* $OpenBSD: update.c,v 1.98 2007/05/27 21:02:23 ray Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -157,9 +157,7 @@ cvs_update_enterdir(struct cvs_file *cf) fatal("cvs_update_enterdir: `%s': %s", cf->file_path, strerror(errno)); - entry = xmalloc(CVS_ENT_MAXLINELEN); - (void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "D/%s////", - cf->file_name); + (void)xasprintf(&entry, "D/%s////", cf->file_name); entlist = cvs_ent_open(cf->file_wd); cvs_ent_add(entlist, entry); |