aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_expand_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_expand_string.c')
-rw-r--r--ares/ares_expand_string.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ares/ares_expand_string.c b/ares/ares_expand_string.c
index dcb0c0290..58d209ad5 100644
--- a/ares/ares_expand_string.c
+++ b/ares/ares_expand_string.c
@@ -1,3 +1,5 @@
+/* $Id: */
+
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* Permission to use, copy, modify, and distribute this
@@ -53,13 +55,13 @@ int ares_expand_string(const unsigned char *encoded,
*s = malloc(len+1);
if (*s == NULL)
return ARES_ENOMEM;
- q = *s;
+ q = *s;
strncpy((char *)q, (char *)encoded, len);
q[len] = '\0';
*s = q;
- *enclen = len+1;
+ *enclen = len+1;
return ARES_SUCCESS;
}