diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2006-05-27 05:59:33 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2006-05-27 05:59:33 +0000 |
commit | 5d66c720aa8626f511e8cdc57a2af27dece2938a (patch) | |
tree | 974c8a92481ec481de50b0be92bfc951c106b011 /usr.bin/cvs/rcs.c | |
parent | 21be1db1b7c2070593e7732c1c3d20c574a7845d (diff) |
correctly expand keywords when checking out files
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r-- | usr.bin/cvs/rcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c index 7105e2918ab..a2e8afa123d 100644 --- a/usr.bin/cvs/rcs.c +++ b/usr.bin/cvs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.172 2006/05/27 03:30:31 joris Exp $ */ +/* $OpenBSD: rcs.c,v 1.173 2006/05/27 05:59:32 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -2577,7 +2577,6 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, char *data, u_int j, found; char *c, *kwstr, *start, *end, *tbuf; char expbuf[256], buf[256]; - struct tm tb; char *fmt; kwtype = 0; @@ -2694,7 +2693,8 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, char *data, if (kwtype & RCS_KW_DATE) { fmt = "%Y/%m/%d %H:%M:%S "; - strftime(buf, sizeof(buf), fmt, &tb); + strftime(buf, sizeof(buf), fmt, + &rdp->rd_date); if (strlcat(expbuf, buf, sizeof(expbuf)) >= sizeof(expbuf)) fatal("rcs_expand_keywords: " |