aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-04-08 17:42:15 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-04-08 17:42:16 +0000
commit161efa6f4e7ea6657918a2f1736a692eea2f56c0 (patch)
tree15274ab618eabe2d7031a44dca06ab0cd5eb3def
parent5dcd313a5c96d0bc991e0f70d6c1955094057916 (diff)
parent6bc89fea4e132d3937dd5aafbabca0d12e3af22f (diff)
downloadltrace-161efa6f4e7ea6657918a2f1736a692eea2f56c0.tar.gz
Merge "Re-add stpcpy call."
-rw-r--r--sysdeps/linux-gnu/hooks.c5
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;
}