show_dir crashes on more than 200 columns
Leonard den Ottolander
leonard at den.ottolander.nl
Wed Nov 3 14:05:27 UTC 2004
Hi Pavel,
On Wed, 2004-11-03 at 12:50, Pavel Tsekov wrote:
> No, it is not. You cannot rely on MC_MAXPATHLEN - it can be too small or
> too big. For exmaple on Cygwin it is set to 259 . I remeber I've seen
> also pretty big values for MAXPATHLEN which are not suitable for
> allocating on the stack. Use the `widget.cols' and allocate memory from
> the heap.
Ok. Restored to original code from Jindrich. See attached patch.
Leonard.
--
mount -t life -o ro /dev/dna /genetic/research
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screen.c.diff
Type: text/x-patch
Size: 745 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20041103/57a06be5/attachment.bin>
More information about the mc-devel
mailing list