fix sc_compare_path_prefix(); patch supplied by Henryk Plötz <henryk@ploetzli.ch>

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3002 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2006-08-01 18:49:08 +00:00
parent 0037ceb09c
commit 81fd37e617

View File

@ -331,8 +331,8 @@ int sc_compare_path_prefix(const sc_path_t *prefix, const sc_path_t *path)
if (prefix->len > path->len)
return 0;
tpath = *path;
tpath.len -= prefix->len;
tpath = *path;
tpath.len = prefix->len;
return sc_compare_path(&tpath, prefix);
}