diff options
Diffstat (limited to 'usr.bin/make/str.c')
-rw-r--r-- | usr.bin/make/str.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c index a05d09e..7a1dd6c 100644 --- a/usr.bin/make/str.c +++ b/usr.bin/make/str.c @@ -80,14 +80,13 @@ str_end(void) /*- * str_concat -- - * concatenate the two strings, inserting a space or slash between them, - * freeing them if requested. + * concatenate the two strings, inserting a space or slash between them. * * returns -- * the resulting string in allocated space. */ char * -str_concat(char *s1, char *s2, int flags) +str_concat(const char *s1, const char *s2, int flags) { int len1, len2; char *result; @@ -114,11 +113,6 @@ str_concat(char *s1, char *s2, int flags) /* copy second string plus EOS into place */ memcpy(result + len1, s2, len2 + 1); - /* free original strings */ - if (flags & STR_DOFREE) { - free(s1); - free(s2); - } return (result); } |