--- smsdaemon/plugins/TrainInfo.cpp 2008/06/12 12:43:29 63 +++ smsdaemon/plugins/TrainInfo.cpp 2008/06/12 12:47:32 64 @@ -63,7 +63,9 @@ string_nocase html = raw_doc.c_str(); - unsigned int pos =0; // = html.find("id='ankomsttabel'"); + unsigned int pos =0; + + unsigned int ankomstpos = html.find("id='ankomsttabel'"); while(1) { @@ -73,6 +75,9 @@ if (pos == string::npos) break; + if (pos > ankomstpos) + break; + TrainInfo info; int start = pos+16;