Don't run over \0 and crash if the size passed in is too large.
Don't run over \0 and crash if the size passed in is too large.

svn path=/trunk/kdepim/; revision=280859

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