* mdocml: Correctly catch `Vt' semicolon in mandoc-db.
@ 2011-05-12 23:44 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-05-12 23:44 UTC (permalink / raw)
To: source
Log Message:
-----------
Correctly catch `Vt' semicolon in mandoc-db.
Modified Files:
--------------
mdocml:
mandoc-db.c
Revision Data
-------------
Index: mandoc-db.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc-db.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -Lmandoc-db.c -Lmandoc-db.c -u -p -r1.20 -r1.21
--- mandoc-db.c
+++ mandoc-db.c
@@ -591,7 +591,8 @@ pmdoc_Fd(MDOC_ARGS)
if ('>' == *end || '"' == *end)
end--;
- dbt_appendb(key, ksz, start, end - start + 1);
+ assert(end >= start);
+ dbt_appendb(key, ksz, start, (size_t)(end - start + 1));
dbt_appendb(key, ksz, "", 1);
fl = MANDOC_INCLUDES;
@@ -702,7 +703,7 @@ pmdoc_Vt(MDOC_ARGS)
if (0 == (sz = strlen(start)))
return;
- if (';' == start[sz - 1])
+ if (';' == start[(int)sz - 1])
sz--;
if (0 == sz)
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-12 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12 23:44 mdocml: Correctly catch `Vt' semicolon in mandoc-db kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).