diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-04 20:03:44 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-03-04 20:03:44 +0000 |
commit | 37ebe3fbf6c4a5728bc2c322cc0f626444f987bf (patch) | |
tree | e9c7d28d76a1183df8795e155aa86acb1a645985 /include | |
parent | cc690201d2538a7ec2dbec7040064c8d3c42c613 (diff) |
Address some valgrind issues
https://codereview.appspot.com/7448051/
git-svn-id: http://skia.googlecode.com/svn/trunk@7966 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkString.h | 2 |
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; } |