summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2006-02-02 19:30:23 +0000
committerclaudio <claudio@openbsd.org>2006-02-02 19:30:23 +0000
commit488667c19cc03fcaaa4e38b4cfaa8901886241c2 (patch)
tree3e91433adc561eeaafb223ab7cb4bca03e4bf179
parentzap md_list_empty, found by lint. (diff)
downloadwireguard-openbsd-488667c19cc03fcaaa4e38b4cfaa8901886241c2.tar.xz
wireguard-openbsd-488667c19cc03fcaaa4e38b4cfaa8901886241c2.zip
In interactive mode force newline between left and right sets in the "e b"
command. OK tedu@
-rw-r--r--usr.bin/sdiff/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sdiff/edit.c b/usr.bin/sdiff/edit.c
index 22643bab16d..cdb28f3b7dc 100644
--- a/usr.bin/sdiff/edit.c
+++ b/usr.bin/sdiff/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.9 2005/12/28 05:57:46 deraadt Exp $ */
+/* $OpenBSD: edit.c,v 1.10 2006/02/02 19:30:23 claudio Exp $ */
/*
* Written by Raymond Lai <ray@cyth.net>.
@@ -153,7 +153,7 @@ eparse(const char *cmd, const char *left, const char *right)
goto LEFT;
/* Neither column is blank, so print both. */
- if (asprintf(&text, "%s%s\n", left, right) == -1)
+ if (asprintf(&text, "%s\n%s\n", left, right) == -1)
err(2, "could not allocate memory");
break;