//$markus: fixed Line out of memory bug in kmreaderwin.cpp

svn path=/trunk/kdenetwork/kmail/; revision=7745
wilder-work
Markus Wuebben 28 years ago
parent ca05f0391e
commit cdb9f761ed
  1. 11
      kmreaderwin.cpp

@ -534,12 +534,15 @@ const QString KMReaderWin::strToHtml(const QString aStr, bool aDecodeQP,
}
else if (ch=='@')
{
char *startofstring = qpstr.data();
char *startpos = pos;
for (i=0; *pos && (isalnum(*pos) || *pos=='@' || *pos=='.' ||
*pos=='_'||*pos=='-' || *pos=='*' || *pos=='[' || *pos==']')
for (i=0; pos >= startofstring && *pos
&& (isalnum(*pos)
|| *pos=='@' || *pos=='.' || *pos=='_'||*pos=='-'
|| *pos=='*' || *pos=='[' || *pos==']')
&& i<255; i++, pos--)
{
}
{
}
i1 = i;
pos++;
for (i=0; *pos && (isalnum(*pos)||*pos=='@'||*pos=='.'||

Loading…
Cancel
Save