diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-01 19:00:26 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-01 19:00:26 +0000 |
commit | 2c4919ef0a9d14582a45bff234cea134a49ceaf9 (patch) | |
tree | 999e08aa8f08738d153bac812bd34fc1e8e59499 /mdk-stage1/newt | |
parent | a098f4cb4eb055ee7f948f5ae51c82e3403ffdac (diff) | |
download | drakx-backup-do-not-use-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar drakx-backup-do-not-use-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar.gz drakx-backup-do-not-use-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar.bz2 drakx-backup-do-not-use-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar.xz drakx-backup-do-not-use-2c4919ef0a9d14582a45bff234cea134a49ceaf9.zip |
don't modify newt code to fix dietlibc bugs, i want to link against glibc too
Diffstat (limited to 'mdk-stage1/newt')
-rw-r--r-- | mdk-stage1/newt/textbox.c | 4 |
1 files 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++; |