summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-string.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2004-12-19 00:11:20 +0000
committerHavoc Pennington <hp@redhat.com>2004-12-19 00:11:20 +0000
commitf3228b477df95ba247c90cc54189ce6d62059251 (patch)
tree59fa3a8b8a3a81606d2ac5e7ecf88fafc7adb967 /dbus/dbus-string.c
parentb360305cdae87c8cb5d0f8cb167c8626238fc4e8 (diff)
2004-12-18 Havoc Pennington <hp@redhat.com>
* dbus/dbus-string.c (_dbus_string_validate_ascii): use ISASCII macro * dbus/dbus-message.c: fix a comment, and add a still-unused not-implemented function * dbus/dbus-marshal.h: fix comment * dbus/dbus-internals.h (_DBUS_ISASCII): new macro
Diffstat (limited to 'dbus/dbus-string.c')
-rw-r--r--dbus/dbus-string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c
index 627fbb06..1188c6cb 100644
--- a/dbus/dbus-string.c
+++ b/dbus/dbus-string.c
@@ -2394,8 +2394,7 @@ _dbus_string_validate_ascii (const DBusString *str,
end = s + len;
while (s != end)
{
- if (_DBUS_UNLIKELY (*s == '\0' ||
- ((*s & ~0x7f) != 0)))
+ if (_DBUS_UNLIKELY (!_DBUS_ISASCII (*s)))
return FALSE;
++s;