aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkString.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkString.h b/include/core/SkString.h
index 4366630ef2..db32dcab39 100644
--- a/include/core/SkString.h
+++ b/include/core/SkString.h
@@ -51,7 +51,7 @@ static bool SkStrContains(const char string[], const char subchar) {
static inline char *SkStrDup(const char string[]) {
char *ret = (char *) sk_malloc_throw(strlen(string)+1);
- memcpy(ret,string,strlen(string));
+ memcpy(ret,string,strlen(string)+1);
return ret;
}