Skip to content

Commit

Permalink
afpd: Use correct username length in afp_changepw, Issue #627
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-hat authored and rdmark committed Dec 27, 2023
1 parent 6022fb3 commit 3ef2274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/afpd/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ int afp_logout(AFPObj *obj, char *ibuf _U_, size_t ibuflen _U_, char *rbuf _U_
*/
int afp_changepw(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
{
char username[MACFILELEN + 1], *start = ibuf;
char username[MAXUSERLEN], *start = ibuf;
struct uam_obj *uam;
struct passwd *pwd;
size_t len;
Expand Down

0 comments on commit 3ef2274

Please sign in to comment.