diff options
-rw-r--r-- | support/nfs/nfs_mntent.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/support/nfs/nfs_mntent.c b/support/nfs/nfs_mntent.c index b407d68..d1d124b 100644 --- a/support/nfs/nfs_mntent.c +++ b/support/nfs/nfs_mntent.c @@ -25,11 +25,12 @@ static unsigned char need_escaping[] = { ' ', '\t', '\n', '\\' }; static char * -mangle(const unsigned char *s) { +mangle(const char *arg) { + const unsigned char *s = (const unsigned char *)arg; char *ss, *sp; int n; - n = strlen(s); + n = strlen(arg); ss = sp = xmalloc(4*n+1); while(1) { for (n = 0; n < sizeof(need_escaping); n++) { |