Bug in getcwd()
Rohner Thomas
Thomas.Rohner at nanotronic.ch
Wed Oct 1 14:26:13 UTC 2014
Hello,
maybe I found a bug in getcwd().
We're using RTEMS 4.0 with Gaisler-Aeroflex....
With our libraries I get an erroneous string when directory-depth is about 4 folders from root!
When I use this string to read directory it crahes!
Is there a limitation of string-length?
I get the same results for
Char buffer[200];
getcwd(buffer,sizeof(buffer));
or
char* ret = getcwd(NULL,0);
Freundliche Grüsse / Kind regards,
Thomas Rohner
Entwicklungsingenieur Software
nanoTRONIC GmbH
Werkstrasse 27, CH - 3250 Lyss
T: +41 32 384 69 30, F: +41 32 384 69 31
www.nanotronic.ch <http://www.nanotronic.ch/> | thomas.rohner at nanotronic.ch <mailto:thomas.rohner at nanotronic.ch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20141001/b853c7ef/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 4023 bytes
Desc: image001.jpg
URL: <http://lists.rtems.org/pipermail/users/attachments/20141001/b853c7ef/attachment-0001.jpg>
More information about the users
mailing list