Use three dots not two.

This commit is contained in:
Nicholas Marriott 2008-06-20 19:03:45 +00:00
parent 487c65ebe7
commit 9a3c3c5198

View File

@ -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 <nicm@users.sourceforge.net>
@ -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: "