Fixed an off by 2 error.
2000-05-07 Christopher James Lahey <clahey@helixcode.com> * backend/pas/pas-backend-file.c: Fixed an off by 2 error. svn path=/trunk/; revision=2889
This commit is contained in:
committed by
Chris Lahey
parent
2e04788970
commit
fe9d3ea8fa
@ -1,3 +1,7 @@
|
||||
2000-05-07 Christopher James Lahey <clahey@helixcode.com>
|
||||
|
||||
* backend/pas/pas-backend-file.c: Fixed an off by 2 error.
|
||||
|
||||
2000-05-07 Chris Toshok <toshok@helixcode.com>
|
||||
|
||||
* gui/component/addressbook.c (set_prop): don't create a new
|
||||
|
||||
@ -415,6 +415,9 @@ pas_backend_file_search (PASBackendFile *bf,
|
||||
DBT id_dbt, vcard_dbt;
|
||||
int i;
|
||||
|
||||
if (!bf->priv->loaded)
|
||||
return;
|
||||
|
||||
view->search_sexp = e_sexp_new();
|
||||
view->search_context = g_new0(PASBackendFileSearchContext, 1);
|
||||
|
||||
@ -436,7 +439,7 @@ pas_backend_file_search (PASBackendFile *bf,
|
||||
while (db_error == 0) {
|
||||
|
||||
/* don't include the version in the list of cards */
|
||||
if (id_dbt.size != strlen(PAS_BACKEND_FILE_VERSION_NAME + 1)
|
||||
if (id_dbt.size != strlen(PAS_BACKEND_FILE_VERSION_NAME) + 1
|
||||
|| strcmp (id_dbt.data, PAS_BACKEND_FILE_VERSION_NAME)) {
|
||||
char *vcard_string = vcard_dbt.data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user