/*
- * $Id: directory.c,v 1.44 2002-10-12 17:27:18 didg Exp $
+ * $Id: directory.c,v 1.45 2002-10-12 18:20:48 didg Exp $
*
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
sfunc = (unsigned char) *ibuf++;
memcpy( &id, ibuf, sizeof( id ));
- *rbuflen = 0;
id = ntohl(id);
+ *rbuflen = 0;
if ( id != 0 ) {
switch ( sfunc ) {
break;
default :
- *rbuflen = 0;
return( AFPERR_PARAM );
}
switch ( sfunc ) {
}
else {
*rbuf++ = len;
- *rbuflen++;
+ *rbuflen += 1;
}
if ( len > 0 ) {
memcpy( rbuf, name, len );