diff options
-rw-r--r-- | sysdeps/linux-gnu/hooks.c | 5 |
1 files changed, 1 insertions, 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; } |