commit | 37ebe3fbf6c4a5728bc2c322cc0f626444f987bf | [log] [tgz] |
---|---|---|
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Mar 04 20:03:44 2013 +0000 |
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Mar 04 20:03:44 2013 +0000 |
tree | e9c7d28d76a1183df8795e155aa86acb1a645985 | |
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
diff --git a/include/core/SkString.h b/include/core/SkString.h index 4366630..db32dca 100644 --- a/include/core/SkString.h +++ b/include/core/SkString.h
@@ -51,7 +51,7 @@ 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; }