diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2010-10-15 22:13:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-19 10:06:04 -0700 |
commit | f976520bee1ca20c5ff73ffc277b71545b698b7a (patch) | |
tree | dff92186fc7284c0db71ce99971823dfe139ef31 /drivers/staging/speakup | |
parent | 2b6d83d6623dfc4ea036b62b405ce206edfcaa52 (diff) |
staging: speakup: i18n.c fix long lines
A help message had to be slightly reworded, but the meaning is the same.
Signed-off-by: William Hubbs <w.d.hubbs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/speakup')
-rw-r--r-- | drivers/staging/speakup/i18n.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c index 7a0c833c9ac4..c2119433f333 100644 --- a/drivers/staging/speakup/i18n.c +++ b/drivers/staging/speakup/i18n.c @@ -42,7 +42,8 @@ static char *speakup_default_msgs[MSG_LAST_INDEX] = { [MSG_GOTO] = "go to?", [MSG_LEAVING_HELP] = "leaving help", [MSG_IS_UNASSIGNED] = "is unassigned", - [MSG_HELP_INFO] = "press space to leav help, cursor up or down to scroll, or a letter to go to commands in list", + [MSG_HELP_INFO] = + "press space to exit, up or down to scroll, or a letter to go to a command", [MSG_EDGE_TOP] = "top,", [MSG_EDGE_BOTTOM] = "bottom,", [MSG_EDGE_LEFT] = "left,", @@ -550,8 +551,10 @@ ssize_t msg_set(enum msg_index_t index, char *text, size_t length) if (newstr) { memcpy(newstr, text, length); newstr[length] = '\0'; - if ((index >= MSG_FORMATTED_START && index <= MSG_FORMATTED_END) - && !fmt_validate(speakup_default_msgs[index], newstr)) { + if ((index >= MSG_FORMATTED_START + && index <= MSG_FORMATTED_END) + && !fmt_validate(speakup_default_msgs[index], + newstr)) { return -EINVAL; } spk_lock(flags); |