summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-29 16:03:57 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-29 16:05:27 +0200
commit00f6653c2c2f6173cf30784b00f59e7256dc7f09 (patch)
tree3e2874e67d4e1d20b7544e91eba9b9a0faab925b /ddb
parentb64c73ca13beef304e86753b78f8079faa885989 (diff)
ddb: fix line formatting
* ddb/db_output.c (db_putchar): Fix off-by-one, allowing one more character to be printed before the newline is inserted.
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ddb/db_output.c b/ddb/db_output.c
index be5319d..a34e807 100644
--- a/ddb/db_output.c
+++ b/ddb/db_output.c
@@ -146,7 +146,7 @@ db_putchar(int c) /* character to output */
cnputc(c);
db_output_position++;
if (db_max_width >= DB_MIN_MAX_WIDTH
- && db_output_position >= db_max_width-1) {
+ && db_output_position >= db_max_width) {
/* auto new line */
cnputc('\n');
db_output_position = 0;