From cbaaa338fa460dc19503600cb4000d9eae088cec Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 1 Oct 2004 18:51:44 +0000 Subject: Use convbase() instead of a "%d" format to convert a zlong. --- Src/builtin.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Src') diff --git a/Src/builtin.c b/Src/builtin.c index 1cfad3e8a..f13f07892 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1579,9 +1579,11 @@ fclist(FILE *f, Options ops, zlong first, zlong last, ent = gethistent(first, first < last? GETHIST_DOWNWARD : GETHIST_UPWARD); if (!ent || (first < last? ent->histnum > last : ent->histnum < last)) { - if (first == last) - zwarnnam("fc", "no such event: %d", NULL, first); - else + if (first == last) { + char buf[DIGBUFSIZE]; + convbase(buf, first, 10); + zwarnnam("fc", "no such event: %s", buf, 0); + } else zwarnnam("fc", "no events in that range", NULL, 0); return 1; } -- cgit 1.4.1