SVN commit 590806 by adridg: Less futzing about with lengths; avoids hypothetical length==0 crash. Patch by Robert Scott. M +5 -2 printcapreader.cpp --- trunk/KDE/kdelibs/kdeprint/lpr/printcapreader.cpp #590805:590806 @@ -44,8 +44,11 @@ else line = m_stream.readLine().trimmed(); // strip any '\' at the end - if (line[line.length()-1] == '\\') - line = line.left(line.length()-1).trimmed(); + if ( line.endsWith('\\') ) + { + line.chop(1); + line = line.trimmed(); + } return true; }