Showing with 4 additions and 1 deletion.
  1. +3 −1 src/datasources/ascii/asciiplugin.cpp
  2. +1 −0 src/kst/kst2.desktop
4 changes: 3 additions & 1 deletion src/datasources/ascii/asciiplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
QString AsciiPlugin::pluginName() const { return tr("ASCII File Reader"); }
QString AsciiPlugin::pluginDescription() const { return tr("ASCII File Reader"); }

const int max_line_length = 1000000;


Kst::DataSource *AsciiPlugin::create(Kst::ObjectStore *store, QSettings *cfg,
const QString &filename,
Expand Down Expand Up @@ -183,7 +185,7 @@ int AsciiPlugin::understands(QSettings *cfg, const QString& filename) const {
int skip = config._dataLine;
bool done = false;
while (!done) {
const QByteArray line = f.readLine();
const QByteArray line = f.readLine(max_line_length);
const int rc = line.size();
if (skip > 0) {
--skip;
Expand Down
1 change: 1 addition & 0 deletions src/kst/kst2.desktop
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Exec=kst2
Expand Down