Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit write the vis(3) converted string into the file, ...
details: https://anonhg.NetBSD.org/src/rev/7c9d6fed24e6
branches: trunk
changeset: 538172:7c9d6fed24e6
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 13 17:15:53 2002 +0000
description:
write the vis(3) converted string into the file, not the original one.
Noted by Tim Robbins. Hi luke!
diffstat:
lib/libedit/history.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7a888d777640 -r 7c9d6fed24e6 lib/libedit/history.c
--- a/lib/libedit/history.c Sun Oct 13 14:54:47 2002 +0000
+++ b/lib/libedit/history.c Sun Oct 13 17:15:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: history.c,v 1.19 2002/03/18 16:00:54 christos Exp $ */
+/* $NetBSD: history.c,v 1.20 2002/10/13 17:15:53 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)history.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: history.c,v 1.19 2002/03/18 16:00:54 christos Exp $");
+__RCSID("$NetBSD: history.c,v 1.20 2002/10/13 17:15:53 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -664,7 +664,7 @@
ptr = h_realloc(ptr, max_size);
}
(void) strvis(ptr, ev.str, VIS_WHITE);
- (void) fprintf(fp, "%s\n", ev.str);
+ (void) fprintf(fp, "%s\n", ptr);
}
h_free(ptr);
(void) fclose(fp);
Home |
Main Index |
Thread Index |
Old Index