Avoid a compiler warning

PERMISSION_HANDLING_BRANCH
jpandre 2010-01-04 08:04:30 +00:00
parent 800ffca71a
commit 05ead49d4e
1 changed files with 1 additions and 2 deletions

View File

@ -1239,8 +1239,7 @@ static BOOL groupmember(struct SECURITY_CONTEXT *scx, uid_t uid, gid_t gid)
else {
ismember = FALSE; /* default return */
tid = scx->tid;
sprintf(filename,"/proc/%u/task/%u/status",
(unsigned int)tid,(unsigned int)tid);
sprintf(filename,"/proc/%u/task/%u/status",tid,tid);
fd = open(filename,O_RDONLY);
if (fd >= 0) {
got = read(fd, buf, BUFSZ);