From 2c4919ef0a9d14582a45bff234cea134a49ceaf9 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 1 Jun 2001 19:00:26 +0000 Subject: don't modify newt code to fix dietlibc bugs, i want to link against glibc too --- mdk-stage1/newt/textbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdk-stage1/newt/textbox.c b/mdk-stage1/newt/textbox.c index 272c9b675..2f2880fe2 100644 --- a/mdk-stage1/newt/textbox.c +++ b/mdk-stage1/newt/textbox.c @@ -173,7 +173,7 @@ static void doReflow(const char * text, char ** resultPtr, int width, while (*text && text < end) { if (end - text < width) { if (result) { - strncat(result, text, end - text + 1); + strncat(result, text, end - text); strcat(result, "\n"); height++; } @@ -212,7 +212,7 @@ static void doReflow(const char * text, char ** resultPtr, int width, chptr++; kanji = 0; } else { - strncat(result, text, chptr - text + 1); + strncat(result, text, chptr - text); } strcat(result, "\n"); height++; -- cgit v1.2.1