--- src/bin/cpdup/cpdup.c 2008/06/27 01:15:39 1.30 +++ src/bin/cpdup/cpdup.c 2008/11/10 14:30:02 1.31 @@ -304,7 +304,7 @@ main(int ac, char **av) * make any required connections. */ if (src && (ptr = strchr(src, ':')) != NULL) { - asprintf(&SrcHost.host, "%*.*s", ptr - src, ptr - src, src); + asprintf(&SrcHost.host, "%*.*s", (int)(ptr - src), (int)(ptr - src), src); src = ptr + 1; if (UseCpFile) { fprintf(stderr, "The cpignore options are not currently supported for remote sources\n"); @@ -318,7 +318,7 @@ main(int ac, char **av) exit(1); } if (dst && (ptr = strchr(dst, ':')) != NULL) { - asprintf(&DstHost.host, "%*.*s", ptr - dst, ptr - dst, dst); + asprintf(&DstHost.host, "%*.*s", (int)(ptr - dst), (int)(ptr - dst), dst); dst = ptr + 1; if (UseFSMIDOpt) { fprintf(stderr, "The FSMID options are not currently supported for remote targets\n");