patch for kurlcompletion.cpp

Stefan Teleman steleman at
Sun Oct 24 01:17:47 BST 2004


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 Teleman          'Nobody Expects the Spanish Inquisition'
steleman at                          -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: <>

More information about the kde-core-devel mailing list