lua-users home
lua-l archive

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


I don't really know much about lua yet, but I just came to think one thing.
As you read the stuff from a file
(maybe to a string) and are giving the size of the buffer to dobuffer, are
you sure you're not accidently giving the size
of the string (characters + '\0') or only the data in it (characters without
the tailing '\0')?


----- Original Message -----
From: "Matthias Gall" <>
To: "Multiple recipients of list" <>
Sent: Monday, February 26, 2001 11:43 AM
Subject: Re: calling script with dobuffer doesnt work

> > Have you embedded newlines into your buffer?
> What exactly do you mean? I read the script from a file into the buffer
> don't change anything, so CR and LF are still there (I dumped the buffer
> it looked okay).
> Matt