[BACK]Return to dgamelaunch.c CVS log [TXT][DIR] Up to [contributed] / dgamelaunch-openbsd

Diff for /dgamelaunch-openbsd/dgamelaunch.c between version 1.8 and 1.9

version 1.8, 2021/04/02 11:02:20 version 1.9, 2021/04/02 12:19:39
Line 2167  readfile (int nolock)
Line 2167  readfile (int nolock)
        * crypt_checkpass takes care of validating the hashing so we         * crypt_checkpass takes care of validating the hashing so we
        * don't have to ensure the password field has a valid length */         * don't have to ensure the password field has a valid length */
   
 #if !defined(__OpenBSD__)  
       while (*b != ':')        while (*b != ':')
         {          {
           users[f_num]->password[(b - n)] = *b;            users[f_num]->password[(b - n)] = *b;
           b++;            b++;
   #if !defined(__OpenBSD__)
           if ((b - n) >= DGL_PASSWDLEN) {            if ((b - n) >= DGL_PASSWDLEN) {
               debug_write("passwd field too long");                debug_write("passwd field too long");
             graceful_exit (102);              graceful_exit (102);
           }            }
         }  
 #endif  #endif
           }
   
       /* advance to next field */        /* advance to next field */
       n = b + 1;        n = b + 1;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

CVSweb