aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/linux-gnu/hooks.c')
-rw-r--r--sysdeps/linux-gnu/hooks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/linux-gnu/hooks.c b/sysdeps/linux-gnu/hooks.c
index 3fb3614..e3bb8c1 100644
--- a/sysdeps/linux-gnu/hooks.c
+++ b/sysdeps/linux-gnu/hooks.c
@@ -40,7 +40,10 @@ append(const char *str1, const char *str2)
char *ret = malloc(strlen(str1) + strlen(str2) + 2);
if (ret == NULL)
return ret;
- strcpy(stpcpy(ret, str1), str2);
+ /* BEGIN android-changed */
+ strcpy(ret, str1);
+ strcat(ret, str2);
+ /* END android-changed */
return ret;
}