From 9a3c3c5198482627fce5d6b1822f86f0ff0d99b7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 20 Jun 2008 19:03:45 +0000 Subject: [PATCH] Use three dots not two. --- cmd-list-buffers.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd-list-buffers.c b/cmd-list-buffers.c index fea3f2a5..c279e2ef 100644 --- a/cmd-list-buffers.c +++ b/cmd-list-buffers.c @@ -1,4 +1,4 @@ -/* $Id: cmd-list-buffers.c,v 1.2 2008-06-20 19:01:59 nicm Exp $ */ +/* $Id: cmd-list-buffers.c,v 1.3 2008-06-20 19:03:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -54,8 +54,8 @@ cmd_list_buffers_exec(struct cmd *self, struct cmd_ctx *ctx) if ((s = cmd_find_session(ctx, data->target)) == NULL) return; - if (s->sx > 35) { - size = s->sx - 35; + if (s->sx > 35) { /* leave three for ... */ + size = s->sx - 32; tmp = xmalloc(size + 1); } else { size = 0; @@ -75,6 +75,7 @@ cmd_list_buffers_exec(struct cmd *self, struct cmd_ctx *ctx) if (out == size) { tmp[out - 1] = '.'; tmp[out - 2] = '.'; + tmp[out - 3] = '.'; } ctx->print(ctx, "%d: "