* mdocml: Backed-out warning messages (lots).
@ 2010-05-15 22:28 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-05-15 22:28 UTC (permalink / raw)
To: source
Log Message:
-----------
Backed-out warning messages (lots).
Modified Files:
--------------
mdocml:
main.c
roff.c
Revision Data
-------------
Index: roff.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -Lroff.c -Lroff.c -u -p -r1.72 -r1.73
--- roff.c
+++ roff.c
@@ -349,14 +349,14 @@ roff_new_ig(ROFF_ARGS)
* Merry fucking Christmas.
*/
- r->last->end = malloc((size_t)i - ppos + 1);
+ r->last->end = malloc((size_t)(i - ppos) + 1);
if (NULL == r->last->end) {
(*r->msg)(MANDOCERR_MEM, r->data, ln, ppos, NULL);
return(ROFF_ERR);
}
- memcpy(r->last->end, &(*bufp)[ppos], (size_t)i - ppos);
- r->last->end[(size_t)i - ppos] = '\0';
+ memcpy(r->last->end, &(*bufp)[ppos], (size_t)(i - ppos));
+ r->last->end[i - ppos] = '\0';
return(ROFF_IGN);
}
Index: main.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -Lmain.c -Lmain.c -u -p -r1.73 -r1.74
--- main.c
+++ main.c
@@ -789,6 +789,7 @@ static const char * const mandocerrs[MAN
static int
mmsg(enum mandocerr t, void *arg, int ln, int col, const char *msg)
{
+#if 0
struct curparse *cp;
cp = (struct curparse *)arg;
@@ -800,5 +801,6 @@ mmsg(enum mandocerr t, void *arg, int ln
fprintf(stderr, ": %s", msg);
fputc('\n', stderr);
+#endif
return(1);
}
--
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:[~2010-05-15 22:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-15 22:28 mdocml: Backed-out warning messages (lots) 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).