Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58480
b: refs/heads/master
c: 0112db3
h: refs/heads/master
v: v3
  • Loading branch information
Rene van Paassen authored and Dmitry Torokhov committed Jul 10, 2007
1 parent b87e9ff commit 239db92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3b6cf1d47508a04de859d357789a3fc0cf8c690
refs/heads/master: 0112db36ef95e5632db071297f7df130725c47b9
5 changes: 4 additions & 1 deletion trunk/drivers/input/tablet/aiptek.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,11 @@ static int map_str_to_val(const struct aiptek_map *map, const char *str, size_t
{
const struct aiptek_map *p;

if (str[count - 1] == '\n')
count--;

for (p = map; p->string; p++)
if (!strncmp(str, p->string, count))
if (!strncmp(str, p->string, count))
return p->value;

return AIPTEK_INVALID_VALUE;
Expand Down

0 comments on commit 239db92

Please sign in to comment.