From: Olaf H. <ol...@su...> - 2006-02-20 15:21:42
|
Any idea how to fix this off-by-one error? Should it be fh->forklen[ADEID_RFORK-1] ? bin/megatron/asingle.c 312 if ( single.entry[ ADEID_RFORK ].ade_off == 0 ) { 313 fh->forklen[ ADEID_RFORK ] = 0; 314 } else { 315 fh->forklen[ ADEID_RFORK ] = 316 htonl( single.entry[ ADEID_RFORK ].ade_len ); 317 } include/atalk/adouble.h 91 #define ADEID_RFORK 2 bin/megatron/megatron.h 22 #define DATA 0 23 #define RESOURCE 1 24 #define NUMFORKS 2 60 struct FHeader { 61 char name[ ADEDLEN_NAME ]; 62 char comment[ ADEDLEN_COMMENT ]; 63 u_int32_t forklen[ NUMFORKS ]; 64 u_int32_t create_date; 65 u_int32_t mod_date; 66 u_int32_t backup_date; 67 struct FInfo finder_info; 68 struct FXInfo finder_xinfo; 69 }; |