summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-06-01 19:00:26 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-06-01 19:00:26 +0000
commit2c4919ef0a9d14582a45bff234cea134a49ceaf9 (patch)
tree999e08aa8f08738d153bac812bd34fc1e8e59499 /mdk-stage1
parenta098f4cb4eb055ee7f948f5ae51c82e3403ffdac (diff)
downloaddrakx-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar
drakx-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar.gz
drakx-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar.bz2
drakx-2c4919ef0a9d14582a45bff234cea134a49ceaf9.tar.xz
drakx-2c4919ef0a9d14582a45bff234cea134a49ceaf9.zip
don't modify newt code to fix dietlibc bugs, i want to link against glibc too
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/newt/textbox.c4
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++;