aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.c b/node.c
index 820a3442..7a926f3d 100644
--- a/node.c
+++ b/node.c
@@ -342,7 +342,7 @@ mk_number(AWKNUM x, unsigned int flags)
/* make_str_node --- make a string node */
NODE *
-r_make_str_node(char *s, unsigned long len, int flags)
+r_make_str_node(const char *s, unsigned long len, int flags)
{
NODE *r;
getnode(r);
@@ -355,7 +355,7 @@ r_make_str_node(char *s, unsigned long len, int flags)
#endif /* defined MBS_SUPPORT */
if (flags & ALREADY_MALLOCED)
- r->stptr = s;
+ r->stptr = (char *) s;
else {
emalloc(r->stptr, char *, len + 2, "make_str_node");
memcpy(r->stptr, s, len);