patch for kurlcompletion.cpp

Stefan Teleman steleman at nyc.rr.com
Sun Oct 24 01:17:47 BST 2004


Hi.

A patch for kurlcompletion.cpp.

On Solaris, readdir_r(3C) does not allocate a buffer for char 
d_name[1] in struct dirent. The caller is responsible for allocating 
space for struct dirent.d_name, enough to hold MAXPATHLEN+1.

This patch fixes this problem, which caused kurlcompletion to crash 
when trying to choose a file -- and which i avoided for 3.3.0 by 
setting KURLCOMPLETION_LOCAL_KIO. With this patch, setting this env 
var is no longer necessary.

--Stefan

-- 
Stefan Teleman          'Nobody Expects the Spanish Inquisition'
steleman at nyc.rr.com                          -Monty Python
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kurlcompletion.cpp.diff
Type: text/x-diff
Size: 2436 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041023/25517c69/attachment.diff>


More information about the kde-core-devel mailing list