]> arthur.barton.de Git - netatalk.git/commitdiff
bugfix AFP 3.1
authordidg <didg>
Tue, 29 Oct 2002 00:28:45 +0000 (00:28 +0000)
committerdidg <didg>
Tue, 29 Oct 2002 00:28:45 +0000 (00:28 +0000)
etc/afpd/enumerate.c

index 7cb9def013c6eef36a9abe123da9eeac4ec7e0b8..e067519607b97642a80f4d9f49570841c8c8fd93 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: enumerate.c,v 1.26 2002-10-17 18:01:54 didg Exp $
+ * $Id: enumerate.c,v 1.27 2002-10-29 00:28:45 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -267,7 +267,7 @@ int     ext;
 
     if (ext == 2) {
         memcpy( &sindex, ibuf, sizeof( sindex ));
-        sindex = ntohs( sindex );
+        sindex = ntohl( sindex );
         ibuf += sizeof( sindex );
     }
     else {
@@ -278,7 +278,7 @@ int     ext;
     
     if (ext == 2) {
         memcpy( &maxsz, ibuf, sizeof( maxsz ));
-        maxsz = ntohs( maxsz );
+        maxsz = ntohl( maxsz );
         ibuf += sizeof( maxsz );
     }
     else {