From 6bc89fea4e132d3937dd5aafbabca0d12e3af22f Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Mon, 7 Apr 2014 16:12:09 -0700 Subject: Re-add stpcpy call. Change-Id: I1e80c3ee1693452f8f1669027fcd0a225e986eb2 --- sysdeps/linux-gnu/hooks.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 @@ append(const char *str1, const char *str2) 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; } -- cgit v1.2.3