Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed May 3, 2024
1 parent 9cb23f8 commit ed54e49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/afppasswd/afppasswd.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ static int update_passwd(const char *path, const char *name, int flags, const ch
} else {
memcpy(password, pass, sizeof(password));
if (strlen(pass) < PASSWDLEN) {
int i;
for (i = strlen(pass); i <= PASSWDLEN; i++) {
for (int i = (int) strlen(pass); i <= PASSWDLEN; i++) {
password[i] = '\0';
}
}
Expand Down Expand Up @@ -278,7 +277,7 @@ int main(int argc, char **argv)
int flags;
uid_t uid_min = UID_START, uid;
char *path = _PATH_AFPDPWFILE;
char *pass = "";
const char *pass = "";
int i, err = 0;

extern char *optarg;
Expand Down

0 comments on commit ed54e49

Please sign in to comment.