mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-09 10:48:26 +02:00
Merge branch 'begin-check-index' into 'main'
tools: fix begin check index and access by array See merge request dbus/dbus!538
This commit is contained in:
commit
95a14579d0
1 changed files with 2 additions and 2 deletions
|
|
@ -134,8 +134,8 @@ print_ay (DBusMessageIter *iter, int depth)
|
|||
|
||||
for (i = 0; i < len; i++)
|
||||
{
|
||||
if ((bytes[i] < 32 || bytes[i] > 126) &&
|
||||
(i < len - 1 || bytes[i] != '\0'))
|
||||
if ((i < len - 1 || bytes[i] != '\0') &&
|
||||
(bytes[i] < 32 || bytes[i] > 126))
|
||||
{
|
||||
all_ascii = FALSE;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue