Run pg(1) and type '/<CR>' which is supposed to forward search for the
previously remembered search string. pg(1) will segfault after printing
"No remembered search string:".
Signed-off-by: Rajeev V. Pillai <rajeevvp@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
if (fslen_ub < offset) {
fprintf(stderr,
_("not enough space allocated for ROM image "
- "(%Ld allocated, %d used)\n"),
+ "(%lld allocated, %d used)\n"),
fslen_ub, offset);
exit(8);
}
*/
eof = 1;
}
- if (search == FORWARD) {
+ if (search == FORWARD && remembered == 1) {
if (eof) {
line = oldline;
search = searchcount = 0;