commit | 87319de2b16a185cf360827c96a42cf1fcaae744 | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Mon Nov 22 16:20:16 2010 -0800 |
committer | Jason Sams <rjsams@android.com> | Mon Nov 22 16:20:16 2010 -0800 |
tree | ecce496901a0e93251956185fba0e228b23040c1 | |
parent | c9110b6b9fba43f2f73af54b1a37e4f5d1aa3146 [diff] [blame] |
More error checks Change-Id: Id2b9ab7a76bbdf2ed745f5e36e552dc9b101982f
diff --git a/rsType.cpp b/rsType.cpp index 2a51335..c195b9b 100644 --- a/rsType.cpp +++ b/rsType.cpp
@@ -136,7 +136,7 @@ char buf[1024]; ObjectBase::dumpLOGV(prefix); LOGV("%s Type: x=%i y=%i z=%i mip=%i face=%i", prefix, mDimX, mDimY, mDimZ, mDimLOD, mFaces); - sprintf(buf, "%s element: ", prefix); + snprintf(buf, sizeof(buf), "%s element: ", prefix); mElement->dumpLOGV(buf); }