summaryrefslogtreecommitdiff
path: root/src/til_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/til_str.c')
-rw-r--r--src/til_str.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/til_str.c b/src/til_str.c
index 6b85556..298e88d 100644
--- a/src/til_str.c
+++ b/src/til_str.c
@@ -49,20 +49,20 @@ static til_str_t * til_str_nulstr(size_t minsize)
}
-/* allocate a new til_str, starting with a dup of seed, just use "" for an empty str, there is no NULL str */
-til_str_t * til_str_new(const char *seed)
+/* allocate a new til_str, starting with a dup of string, just use "" for an empty str, there is no NULL str */
+til_str_t * til_str_new(const char *string)
{
til_str_t *str;
size_t len;
- assert(seed);
+ assert(string);
- len = strlen(seed);
+ len = strlen(string);
str = til_str_nulstr(len + 1);
if (!str)
return NULL;
- memcpy(str->buf, seed, len);
+ memcpy(str->buf, string, len);
str->size.used += len;
return str;
© All Rights Reserved