diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-04-07 20:50:23 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2005-04-07 20:50:23 +0000 |
commit | 1c61c41b98f3d69bb0a38abee5da3091b93207d3 (patch) | |
tree | a3dddd499f52ec073ec80d14a1a1b10b5b4a50bb /usr.bin/cvs/rcs.h | |
parent | d01df2650a227661a2bfe17504c79f5b9f87fbdf (diff) |
Perform proper escaping of the @ character in all RCS strings when
writing the output to the file.
ok joris@
Diffstat (limited to 'usr.bin/cvs/rcs.h')
-rw-r--r-- | usr.bin/cvs/rcs.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h index 38ba5302c68..b3f4839ca5a 100644 --- a/usr.bin/cvs/rcs.h +++ b/usr.bin/cvs/rcs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.h,v 1.17 2005/04/06 19:12:08 jfb Exp $ */ +/* $OpenBSD: rcs.h,v 1.18 2005/04/07 20:50:22 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -135,19 +135,19 @@ struct rcs_dlist { }; struct rcs_delta { - RCSNUM *rd_num; - RCSNUM *rd_next; - u_int rd_flags; - struct tm rd_date; - char *rd_author; - char *rd_state; - char *rd_log; - char *rd_text; - - struct rcs_dlist rd_snodes; - + RCSNUM *rd_num; + RCSNUM *rd_next; + u_int rd_flags; + struct tm rd_date; + char *rd_author; + char *rd_state; + char *rd_log; + char *rd_text; + size_t rd_tlen; + + struct rcs_dlist rd_snodes; TAILQ_HEAD(, rcs_branch) rd_branches; - TAILQ_ENTRY(rcs_delta) rd_list; + TAILQ_ENTRY(rcs_delta) rd_list; }; @@ -207,7 +207,6 @@ void rcs_kflag_usage (void); int rcs_kw_expand (RCSFILE *, u_char *, size_t, size_t *); BUF* rcs_patch (const char *, const char *); -size_t rcs_stresc (int, const char *, char *, size_t *); RCSNUM* rcsnum_alloc (void); RCSNUM* rcsnum_parse (const char *); |