Fix wrong error message count in QDBusError
authorPeter Kümmel <syntheticpp@gmx.net>
Sat, 1 Dec 2012 10:32:50 +0000 (11:32 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 1 Dec 2012 16:13:43 +0000 (17:13 +0100)
commit62fc97056887f313ef13ed85d0095dc1b3b69202
tree0ea41dd1746225a2e33d2b12cea112004356557f
parent43ee10518ab9870cc6f39cedc1febf9b7c57ebff
Fix wrong error message count in QDBusError

Don't pass the pointer errorMessages_string - 1 to strcmp().

-1 marks the end should not be used for the pointer arithmetic
in get(const char *name)

Change-Id: I5ec239c63f074d104d441511294554f21fd6eccd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/dbus/qdbuserror.cpp