diff options
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmdav.c | 4 | ||||
-rw-r--r-- | rpmio/rpmrpc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/rpmio/rpmdav.c b/rpmio/rpmdav.c index cf08fb139..936b44e78 100644 --- a/rpmio/rpmdav.c +++ b/rpmio/rpmdav.c @@ -1417,7 +1417,7 @@ struct dirent * avReaddir(DIR * dir) dp = (struct dirent *) avdir->data; av = (const char **) (dp + 1); ac = avdir->size; - dt = (char *) (av + (ac + 1)); + dt = (unsigned char *) (av + (ac + 1)); i = avdir->offset + 1; /*@-boundsread@*/ @@ -1470,7 +1470,7 @@ fprintf(stderr, "*** avOpendir(%s)\n", path); /*@-abstract@*/ dp = (struct dirent *) (avdir + 1); av = (const char **) (dp + 1); - dt = (char *) (av + (ac + 1)); + dt = (unsigned char *) (av + (ac + 1)); t = (char *) (dt + ac + 1); /*@=abstract@*/ diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c index d04594e5c..0d2bcf37a 100644 --- a/rpmio/rpmrpc.c +++ b/rpmio/rpmrpc.c @@ -1190,7 +1190,7 @@ fprintf(stderr, "*** ftpOpendir(%s)\n", path); /*@-abstract@*/ dp = (struct dirent *) (avdir + 1); av = (const char **) (dp + 1); - dt = (char *) (av + (ac + 1)); + dt = (unsigned char *) (av + (ac + 1)); t = (char *) (dt + ac + 1); /*@=abstract@*/ |