From a4c50567d7ad3a330cac6f7d1b6bfee1ea861ced Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 29 Oct 2014 09:17:07 -0700 Subject: [PATCH] Compiler suggested cleanup. --- scp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scp.c b/scp.c index b347b54a..6ce7857a 100644 --- a/scp.c +++ b/scp.c @@ -8860,13 +8860,13 @@ for (i=0; i < exp->size; i++) { if (tstr) cbuf = tstr; else { - if (strlen (exp->buf) != exp->buf_ins) { /* Nul characters in buffer? */ + if (strlen ((char *)exp->buf) != exp->buf_ins) { /* Nul characters in buffer? */ size_t off; tstr = malloc (exp->buf_ins + 1); tstr[0] = '\0'; - for (off=0; off < exp->buf_ins; off += 1 + strlen (&exp->buf[off])) - strcpy (&tstr[strlen (tstr)], &exp->buf[off]); + for (off=0; off < exp->buf_ins; off += 1 + strlen ((char *)&exp->buf[off])) + strcpy (&tstr[strlen (tstr)], (char *)&exp->buf[off]); cbuf = tstr; } }