Compiler warning
This commit is contained in:
parent
65723cba53
commit
1ba2b198b4
1 changed files with 1 additions and 1 deletions
|
@ -790,7 +790,7 @@ ustar_rd(ARCHD *arcn, char *buf)
|
||||||
* the POSIX spec wants).
|
* the POSIX spec wants).
|
||||||
*/
|
*/
|
||||||
hd->gname[sizeof(hd->gname) - 1] = '\0';
|
hd->gname[sizeof(hd->gname) - 1] = '\0';
|
||||||
if (gid_name(hd->gname, &(arcn->sb.st_gid)) < 0)
|
if (gid_name((char *) hd->gname, (gid_t *) &(arcn->sb.st_gid)) < 0)
|
||||||
arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT);
|
arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT);
|
||||||
hd->uname[sizeof(hd->uname) - 1] = '\0';
|
hd->uname[sizeof(hd->uname) - 1] = '\0';
|
||||||
if (uid_name(hd->uname, &(arcn->sb.st_uid)) < 0)
|
if (uid_name(hd->uname, &(arcn->sb.st_uid)) < 0)
|
||||||
|
|
Loading…
Reference in a new issue