aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-04 20:03:44 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-04 20:03:44 +0000
commit37ebe3fbf6c4a5728bc2c322cc0f626444f987bf (patch)
treee9c7d28d76a1183df8795e155aa86acb1a645985 /include
parentcc690201d2538a7ec2dbec7040064c8d3c42c613 (diff)
Address some valgrind issues
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;
}