X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=client%2Ffhistory.c;h=7fb5f3f31bc16fe9d84320c97d0953f0893a965e;hb=62fd62f25a6893d042c4c87f8c770929fd8cf95d;hp=b75c03d8725685fae6e200edac7eeac0174f9f59;hpb=d42f045690a68380de575447bf9755f922ec734d;p=yaz-moved-to-github.git diff --git a/client/fhistory.c b/client/fhistory.c index b75c03d..7fb5f3f 100644 --- a/client/fhistory.c +++ b/client/fhistory.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: fhistory.c,v 1.2 2007-01-24 23:09:48 adam Exp $ + * $Id: fhistory.c,v 1.3 2007-03-19 22:17:41 adam Exp $ */ /** \file fhistory.c * \brief file history implementation @@ -111,7 +111,7 @@ int file_history_trav(file_history_t fh, void *client_data, if (wrbuf_buf(fh->wr)[i] == '\n') { wrbuf_buf(fh->wr)[i] = '\0'; - callback(client_data, wrbuf_buf(fh->wr) + off); + callback(client_data, wrbuf_cstr(fh->wr) + off); wrbuf_buf(fh->wr)[i] = '\n'; i++; break;