summaryrefslogtreecommitdiff
path: root/usr.bin/sdiff/edit.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-02-02 19:30:24 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-02-02 19:30:24 +0000
commitf653f2e86ced73b0b711c7ec0c6d882d3cd072a4 (patch)
tree450c2a2e4011c5d694962a6fe57d9fe661a63c0d /usr.bin/sdiff/edit.c
parent0f489318fa3afdaa2593401f78845b37df29b080 (diff)
In interactive mode force newline between left and right sets in the "e b"
command. OK tedu@
Diffstat (limited to 'usr.bin/sdiff/edit.c')
-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;