X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Ftext.c;h=6446ffe21d9bf154ff00dc39351d647eeaf87148;hp=f781a56359f7bde43b887737dde568edf687bb9c;hb=04cfb5daeff6cbceef152fc01ad5852407c0c918;hpb=74ed6f367314f4b4f373b45f82cedd04595a2608 diff --git a/src/libgame/text.c b/src/libgame/text.c index f781a563..6446ffe2 100644 --- a/src/libgame/text.c +++ b/src/libgame/text.c @@ -753,7 +753,11 @@ int DrawTextBuffer(int x, int y, char *text_buffer, int font_nr, char line[MAX_LINE_LEN + 1]; char *line_ptr; boolean last_line_was_empty = TRUE; +#if 1 + int num_line_chars = MAX_LINE_LEN; +#else int num_line_chars = (autowrap ? MAX_LINE_LEN : line_length); +#endif int i; /* copy next line from text buffer to line buffer (nearly fgets() style) */ @@ -830,7 +834,6 @@ int DrawTextBuffer(int x, int y, char *text_buffer, int font_nr, } else { - /* !!! CAN NEVER HAPPEN -- CHECK + CORRECT !!! */ buffer_len = line_length; strncpy(buffer, line_ptr, line_length); }