From a7360d9385d0a204d4cc4b6fb6f2fa23606f5285 Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 25 Mar 2002 22:57:47 +0000 Subject: [PATCH] fmt_long did not count the '-' --- CHANGES | 4 ++++ fmt/fmt_long.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 5f6ecc2..68e41dc 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +0.11: + fix fmt_long (didn't count the '-'), which in turn broke + buffer_putlong + 0.10: add comment to stralloc.h that explains the structure (Markus Brischke) fix socket routines (two cut-and-paste errors) diff --git a/fmt/fmt_long.c b/fmt/fmt_long.c index 707b3c8..b521142 100644 --- a/fmt/fmt_long.c +++ b/fmt/fmt_long.c @@ -3,7 +3,7 @@ unsigned int fmt_long(char *dest,long int i) { if (i<0) { if (dest) *dest='-'; - return fmt_ulong(dest+1,-i); + return fmt_ulong(dest+1,-i)+1; } else return fmt_ulong(dest,i); }