Mercurial > libpst
diff src/libpst.c @ 128:7f747c8c9d02
cleanup installed headers
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 05 Feb 2009 09:22:22 -0800 |
parents | 23a36ac0514d |
children | fc11b1d1ad34 |
line wrap: on
line diff
--- a/src/libpst.c Thu Feb 05 09:20:02 2009 -0800 +++ b/src/libpst.c Thu Feb 05 09:22:22 2009 -0800 @@ -565,11 +565,9 @@ return 0; } - memcpy(&xattrib, &(buffer[bptr]), sizeof(xattrib)); - LE32_CPU(xattrib.extended); - LE16_CPU(xattrib.type); - LE16_CPU(xattrib.map); - bptr += sizeof(xattrib); + xattrib.extended=PST_LE_GET_UINT32(buffer+bptr), bptr += 4; + xattrib.type=PST_LE_GET_UINT16(buffer+bptr), bptr += 2; + xattrib.map=PST_LE_GET_UINT16(buffer+bptr), bptr += 2; while (xattrib.type != 0 && bptr < bsize) { ptr = (pst_x_attrib_ll*) xmalloc(sizeof(*ptr));