X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=a11f9dc07c301b232aa43973e2f5f4f184c2591e;hb=50606c10e645308dddb9c8d0e676b33ce38f1df8;hp=2f5f0d513e9fdbd537b0b960bf9406464bb9364b;hpb=3fa6bf34c5496f69a63469a3184251d38758c85d;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index 2f5f0d5..a11f9dc 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -1051,7 +1051,7 @@ static int marc_exec_leader(const char *leader_spec, char *leader, size_t size) no = sscanf(cp, "%d=%20[^,]%n", &pos, val, &no_read); if (no < 2 || no_read < 3) return -1; - if (pos < 0 || pos >= size) + if (pos < 0 || (size_t) pos >= size) return -1; if (*val == '\'')