Patch from vodz:
[oweals/busybox.git] / libbb / correct_password.c
index 758b89eed79069e2eb24048e063e9ccaf6f2be8d..39625361407302b4a46390a43cd47fc4282bbf2a 100644 (file)
@@ -55,7 +55,7 @@ int correct_password ( const struct passwd *pw )
                struct spwd *sp = getspnam ( pw-> pw_name );
                
                if ( !sp )
-                       error_msg_and_die ( "no valid shadow password" );
+                       bb_error_msg_and_die ( "no valid shadow password" );
                
                correct = sp-> sp_pwdp;
        }
@@ -73,6 +73,6 @@ int correct_password ( const struct passwd *pw )
                return 0;
        }
        encrypted = crypt ( unencrypted, correct );
-       memset ( unencrypted, 0, xstrlen ( unencrypted ));
+       memset ( unencrypted, 0, bb_strlen ( unencrypted ));
        return ( strcmp ( encrypted, correct ) == 0 ) ? 1 : 0;
 }