diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-03-31 06:57:33 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-31 13:16:13 -0500 |
commit | 27d0bc6ccf75176b22b417b554d00a5580fc87d7 (patch) | |
tree | 2d034e79583d4769e5840a80f92eaeb66fe59de5 /gatchat/gatserver.c | |
parent | 374181097ee0bcd438af0899724656ae6bc0b5ec (diff) | |
download | ofono-27d0bc6ccf75176b22b417b554d00a5580fc87d7.tar.bz2 |
Fix ampersand commands check
Also remove a trailing tab.
Diffstat (limited to 'gatchat/gatserver.c')
-rw-r--r-- | gatchat/gatserver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index 031e5420..839ebe4d 100644 --- 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; |