aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 5a7370e..9adc1e7 100644
--- a/search.c
+++ b/search.c
@@ -114,7 +114,7 @@ tInt8 searchfor(tSearch* search,tBuffer* buf,tUInt64* cursorpos,tBool nextnotpre
}
}
}
- actcursorpos=x;
+ actcursorpos=x-buf->baseaddr; // FIXME
search->lastsearchlogpos=getfilepos(frlog);
}
increment=1;
@@ -126,7 +126,7 @@ tInt8 searchfor(tSearch* search,tBuffer* buf,tUInt64* cursorpos,tBool nextnotpre
{
search->occurancesfound++;
search->lastoccurance=actcursorpos;
- if (search->writesearchlog) fprintf(fwlog,"%016llx\n",(tUInt64)actcursorpos); else done=1;
+ if (search->writesearchlog) fprintf(fwlog,"%016llx\n",(tUInt64)actcursorpos+buf->baseaddr); else done=1;
}
}
if (frlog) fclose(frlog);
class='logheader'>2009-03-08update scan file for ch-CitycableChristoph Pfister1-0/+4 http://linuxtv.org/pipermail/linux-dvb/2009-March/031949.html 2009-03-08update scan file for au-SunshineCoastChristoph Pfister1-9/+9 http://www.mail-archive.com/linux-media@vger.kernel.org/msg02432.html http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/2561