lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 4 Aug 2009 14:53:52 +0100
Rob Kendrick <lua-l@nun.org.uk> wrote:

> On Tue, 4 Aug 2009 15:46:42 +0200
> steve donovan <steve.j.donovan@gmail.com> wrote:
> 
> > On Tue, Aug 4, 2009 at 3:44 PM, Luiz Henrique de
> > Figueiredo<lhf@tecgraf.puc-rio.br> wrote:
> > > And the strcpy helped??
> > >
> > 
> > Oh yes, then it was a well-behaved string. A mystery to me also.
> 
> Valgrind to the rescue.
> 
> B.

Here's something interesting:

I added the following line just before the pushlstring in question:

printf("name = %s (len %d) len = %d\n", iev->name, strlen(iev->name),
iev->len);

And lo and behold, what output do I get?  
This:

name = foo (len 3) len = 16

Looks like I need to look at the inotify docs again...

-Rob

Attachment: signature.asc
Description: PGP signature