[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Path length in GEM file selector
> In <9401201204.AA13974@urix6.uni-muenster.de>, Marcus Haebler wrote:
>
> Since P1003.1 does not define a maximum length for a path, no application
> should assume that there is one. You'll have to use something more
> flexible than a compile time constant.
>
> Here is an example with getcwd() :
...
Quite nice but how does the file selector know the length of the
space the program saved for the path??
Uli's idea with the cookie is really good. What about a cookie
_PTL <max length of path without the \0 at the end like strlen()>
Eric what do you think about this? Any comments or suggestions?
We should also install a cookie for the file name size:
_FTL <max length of file name without \0>>
Regards,
Marcus
---
**********************************************************************
* Marcus Haebler * Internet: haebler@uni-muenster.de *
* Althausweg 29 * You can also contact me via IRC. *
* 48159 Muenster * Drop me a note at Noteserv@service.de *
* Germany * Nickname: D_Gently (Mostly Harmless) *
**********************************************************************