diff options
author | Gürkan Sengün <gurkan@phys.ethz.ch> | 2012-06-22 14:52:55 +0200 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2012-10-30 21:29:31 +0000 |
commit | 4247b0208aea6c1251eca8bf138a3986671da2bb (patch) | |
tree | d0c14ee43c6ccc8e7890cfba8fdb741510108b9a /search.c | |
parent | fe6079449518e3acce8074d4a04f2b85708e19c4 (diff) | |
parent | b870e05547bc189f29569a5d21db0c875c8f9983 (diff) | |
download | dhex-4247b0208aea6c1251eca8bf138a3986671da2bb.tar.gz |
Imported Debian patch 0.67-1debian/0.67-1
Diffstat (limited to '')
-rw-r--r-- | search.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |