diff options
-rw-r--r-- | dynstr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -443,7 +443,7 @@ static Dynstr *readline_helper(int (*callback)(FILE *, int), FILE *f, int fd) buf[buflen++] = c; if (buflen == sizeof(buf)) { - temp1 = dynstr_new_from_memory(buf, buflen); + temp1 = dynstr_new_from_constant_memory(buf, buflen); if (temp1 == NULL) goto error; temp2 = dynstr_cat(line, temp1, (void *) NULL); @@ -460,7 +460,7 @@ static Dynstr *readline_helper(int (*callback)(FILE *, int), FILE *f, int fd) } if (buflen > 0) { - temp1 = dynstr_new_from_memory(buf, buflen); + temp1 = dynstr_new_from_constant_memory(buf, buflen); if (temp1 == NULL) goto error; temp2 = dynstr_cat(line, temp1, (void *) NULL); |