]> arthur.barton.de Git - netatalk.git/commitdiff
ad_util.c, wrong parameters order for memset
authordidg <didg>
Wed, 14 Oct 2009 02:30:42 +0000 (02:30 +0000)
committerdidg <didg>
Wed, 14 Oct 2009 02:30:42 +0000 (02:30 +0000)
bin/cnid/ad_util.c

index 0624b5ac95263eca061a72df32f98b30088e654b..339a72b40b66dd6ecec18bd110501f27f0ded0fd 100644 (file)
@@ -1,5 +1,5 @@
 /* 
-   $Id: ad_util.c,v 1.1 2009-09-01 14:28:07 franklahm Exp $
+   $Id: ad_util.c,v 1.2 2009-10-14 02:30:42 didg Exp $
 
    Copyright (c) 2009 Frank Lahm <franklahm@gmail.com>
    
@@ -36,7 +36,7 @@ int newvol(const char *path, afpvol_t *vol)
 {
 //    char *pathdup;
 
-    memset(vol, sizeof(afpvol_t), 0);
+    memset(vol, 0, sizeof(afpvol_t));
 
 //    pathdup = strdup(path);
 //    vol->dirname = strdup(dirname(pathdup));