| commit | 6bc89fea4e132d3937dd5aafbabca0d12e3af22f | [log] [tgz] |
|---|---|---|
| author | Christopher Ferris <cferris@google.com> | Mon Apr 07 16:12:09 2014 -0700 |
| committer | Christopher Ferris <cferris@google.com> | Mon Apr 07 16:12:23 2014 -0700 |
| tree | 4b5e040759c159ab8abd18243d29cf0435d6922e | |
| parent | 1031614c095f00454326deb460a83381e98d5166 [diff] [blame] |
Re-add stpcpy call. Change-Id: I1e80c3ee1693452f8f1669027fcd0a225e986eb2
diff --git a/sysdeps/linux-gnu/hooks.c b/sysdeps/linux-gnu/hooks.c index e3bb8c1..3fb3614 100644 --- a/sysdeps/linux-gnu/hooks.c +++ b/sysdeps/linux-gnu/hooks.c
@@ -40,10 +40,7 @@ char *ret = malloc(strlen(str1) + strlen(str2) + 2); if (ret == NULL) return ret; - /* BEGIN android-changed */ - strcpy(ret, str1); - strcat(ret, str2); - /* END android-changed */ + strcpy(stpcpy(ret, str1), str2); return ret; }