summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:57 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:57 +0100
commitdfcb08c2e7c2e6713691b3003e51295f05e75f5a (patch)
tree5c24e4f77596ae4637f195322328c78b95418fe4
parentcf3bec7340563628689e92d3be018a25fa550dbd (diff)
init1.c: strappend() takes a const second parameter
-rw-r--r--src/init1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init1.cc b/src/init1.cc
index 4a646b51..b01072a2 100644
--- a/src/init1.cc
+++ b/src/init1.cc
@@ -1517,7 +1517,7 @@ static char *my_strdup(const char *s)
* Append one string to the end of another, reallocating if
* necessary.
*/
-static void strappend(char **s, char *t)
+static void strappend(char **s, const char *t)
{
// Do we need to initialize the destination string?
if (*s == nullptr)