Index: src/core/SkError.cpp |
diff --git a/src/core/SkError.cpp b/src/core/SkError.cpp |
index d85b5ff0cc08d47daff2793122a540938f60288d..96bda7ebf473da48202dbce83c26daed07dff957 100644 |
--- a/src/core/SkError.cpp |
+++ b/src/core/SkError.cpp |
@@ -116,7 +116,7 @@ void SkErrorInternals::SetError(SkError code, const char *fmt, ...) { |
break; |
} |
- sprintf( str, "%s: ", error_name ); |
+ snprintf( str, ERROR_STRING_LENGTH, "%s: ", error_name ); |
int string_left = SkToInt(ERROR_STRING_LENGTH - strlen(str)); |
str += strlen(str); |