Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9105/src
Modified Files:
Tag: Release_0_9_5_stable
refdbxp.c
Log Message:
bail out if full citation is too short
Index: refdbxp.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbxp.c,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -U2 -r1.7.2.1 -r1.7.2.2
--- refdbxp.c 20 Jun 2004 21:56:26 -0000 1.7.2.1
+++ refdbxp.c 24 Jun 2004 20:33:56 -0000 1.7.2.2
@@ -473,4 +473,9 @@
/* use one char less to eliminate trailing type specifier */
len = idend - idstring - 1;
+
+ if (len < 5) {
+ /* incomplete citation */
+ continue;
+ }
/* skip the type suffix separator */
|