=================================================================== RCS file: /cvs2/dgamelaunch-openbsd/dgamelaunch.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -p -r1.8 -r1.9 --- dgamelaunch-openbsd/dgamelaunch.c 2021/04/02 11:02:20 1.8 +++ dgamelaunch-openbsd/dgamelaunch.c 2021/04/02 12:19:39 1.9 @@ -2167,17 +2167,17 @@ readfile (int nolock) * crypt_checkpass takes care of validating the hashing so we * don't have to ensure the password field has a valid length */ -#if !defined(__OpenBSD__) while (*b != ':') { users[f_num]->password[(b - n)] = *b; b++; +#if !defined(__OpenBSD__) if ((b - n) >= DGL_PASSWDLEN) { debug_write("passwd field too long"); graceful_exit (102); } - } #endif + } /* advance to next field */ n = b + 1;