| commit | 904f49fd770dd559800523edd91c1226e131655d | [log] [tgz] |
|---|---|---|
| author | Ricky Zhou <[email protected]> | Tue Aug 09 17:34:49 2016 |
| committer | chrome-bot <[email protected]> | Wed Aug 10 02:40:30 2016 |
| tree | b15222475d7e97c09e8f8c7ed2761d29ac73eca9 | |
| parent | f140c0aa430e1db1c0f31d23d3eb2397d47f209e [diff] |
Fix format string bug in DBus::Error. BUG=chromium:635879 TEST=None. Change-Id: If3a344b08426bec971943942c548eadbbe16c01c Reviewed-on: https://chromium-review.googlesource.com/367270 Commit-Ready: Ricky Zhou <[email protected]> Tested-by: Ricky Zhou <[email protected]> Reviewed-by: Jorge Lucangeli Obes <[email protected]> Reviewed-by: Ricky Zhou <[email protected]>
diff --git a/src/error.cpp b/src/error.cpp index c34430b..4333537 100644 --- a/src/error.cpp +++ b/src/error.cpp
@@ -79,7 +79,7 @@ void Error::set(const char *name, const char *message) { - dbus_set_error(&(_int->error), name, message); + dbus_set_error(&(_int->error), name, "%s", message); } const char *Error::what() const throw()