lib/replace: Don't use StrnCpy inside crypt.c
authorKai Blin <kai@samba.org>
Sun, 4 Apr 2010 11:51:02 +0000 (13:51 +0200)
committerKai Blin <kai@samba.org>
Sun, 4 Apr 2010 11:51:02 +0000 (13:51 +0200)
With this and the int32_t/int64_t change, talloc crossbuilds to android

lib/replace/crypt.c

index aeb8f6e941c74a62c81952035bfe1e48758dfb52..3a067bcc77fa2f70268c130ae5a66006e0418d73 100644 (file)
@@ -665,7 +665,7 @@ char *ufc_crypt(const char *key,const char *salt)
      * Setup key schedule
      */
     clearmem(ktab, sizeof ktab);
-    StrnCpy(ktab, key, 8);
+    strncpy(ktab, key, 8);
     ufc_mk_keytab(ktab);
 
     /*