/* text string helper functions */
/* ========================================================================= */
-int maxWordLengthInString(char *text)
+int maxWordLengthInRequestString(char *text)
{
char *text_ptr;
int word_len = 0, max_word_len = 0;
for (text_ptr = text; *text_ptr; text_ptr++)
{
- word_len = (*text_ptr != ' ' ? word_len + 1 : 0);
+ word_len = (*text_ptr != ' ' &&
+ *text_ptr != '?' &&
+ *text_ptr != '!' ? word_len + 1 : 0);
max_word_len = MAX(word_len, max_word_len);
}
void getFontCharSource(int, char, Bitmap **, int *, int *);
-int maxWordLengthInString(char *);
+int maxWordLengthInRequestString(char *);
void DrawInitText(char *, int, int);
int result;
int ty;
- if (maxWordLengthInString(text) > MAX_REQUEST_LINE_FONT1_LEN)
+ if (maxWordLengthInRequestString(text) > MAX_REQUEST_LINE_FONT1_LEN)
{
max_request_line_len = MAX_REQUEST_LINE_FONT2_LEN;
font_nr = FONT_TEXT_1;