projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3741810
)
Fix ampersand commands check
author
Andrzej Zaborowski
<andrew.zaborowski@intel.com>
Wed, 31 Mar 2010 04:57:33 +0000
(06:57 +0200)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 31 Mar 2010 18:16:13 +0000
(13:16 -0500)
Also remove a trailing tab.
gatchat/gatserver.c
patch
|
blob
|
history
diff --git
a/gatchat/gatserver.c
b/gatchat/gatserver.c
index
031e542
..
839ebe4
100644
(file)
--- a/
gatchat/gatserver.c
+++ b/
gatchat/gatserver.c
@@
-570,9
+570,9
@@
static int get_basic_prefix_size(const char *buf)
/* All other cases it is a simple 1 character prefix */
return 1;
}
-
+
if (buf[0] == '&') {
- if (g_ascii_isalpha(buf[
0] == FALSE)
)
+ if (g_ascii_isalpha(buf[
1]) == FALSE
)
return 0;
return 2;