Check the amount of data actually read and do not assume it is a proper null-terminated string.
Check the amount of data actually read and do not assume it is a proper null-terminated string.

svn path=/trunk/KDE/kdepim/strigi-analyzer/; revision=813925

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi