Re: [wmii] libixp adding 24 trailing NUL bytes to Rread?

From: Kris Maglione <jg_AT_suckless.org>
Date: Wed, 30 Jan 2008 08:50:40 -0500

On Tue, Jan 29, 2008 at 11:44:07PM -0800, Suraj N. Kurapati wrote:
>Hello,
>
>I am using hg tip of both wmii (at 2266:3209815c2cec) and libixp (at
>88:3e1f5e86e99b). When I try to read the content of a directory,
>the Rread fcall I get from wmii has 24 extra NUL bytes at the end.
>
>I think wmiir does not have a problem with this because strings are
>null terminated in C, so the extra bytes are (effectively)
>automatically removed.

I'll look into it, but it has nothing to do with strings being
null terminated in C. Stat objects are parsed as binary data.
The only way that the NULs would be ignored is if they're
appended to the end of a file name, and included in the size of
the stat.

-- 
Kris Maglione
When all else fails, read the instructions.
PGP: http://suckless.org/~jg/pubkey.pgp
SHA1 (pubkey.pgp) = 2d464f9dbb186bee6f4faa88e2f6c5802bcfd935

Received on Wed Jan 30 2008 - 14:51:05 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:35:25 UTC