projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20070315-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
text.c
diff --git
a/src/libgame/text.c
b/src/libgame/text.c
index f781a56359f7bde43b887737dde568edf687bb9c..6446ffe21d9bf154ff00dc39351d647eeaf87148 100644
(file)
--- 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;
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);
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) */
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
{
}
else
{
- /* !!! CAN NEVER HAPPEN -- CHECK + CORRECT !!! */
buffer_len = line_length;
strncpy(buffer, line_ptr, line_length);
}
buffer_len = line_length;
strncpy(buffer, line_ptr, line_length);
}