]> andersk Git - moira.git/blobdiff - lib/mr_auth.c
Diane Delgado's changes for a fixed table-locking order
[moira.git] / lib / mr_auth.c
index ca0eb45398d4796365047944b8fc3bd59fa20fa1..d6db8ca0cbf146197b1074fb636fc984e01cf369 100644 (file)
@@ -20,7 +20,7 @@ static char *rcsid_sms_auth_c = "$Header$";
 #include <ctype.h>
 #include <krb.h>
 #include <krb_et.h>
-#include <strings.h>
+#include <string.h>
 
 /* Authenticate this client with the MR server.  prog is the name of the
  * client program, and will be recorded in the database.
@@ -43,11 +43,11 @@ char *prog;
        
     /* Build a Kerberos authenticator. */
        
-    bzero(host, sizeof(host));
+    memset(host, 0, sizeof(host));
     if (status = mr_host(host, sizeof(host) - 1))
        return status;
 
-    strcpy(realm, krb_realmofhost(host));
+    strcpy(realm, (char *)krb_realmofhost(host));
     for (p = host; *p && *p != '.'; p++)
       if (isupper(*p))
        *p = tolower(*p);
This page took 0.032312 seconds and 4 git commands to generate.