projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't force buffy_check when changing folder.
[apps/madmutt.git]
/
makedoc.c
diff --git
a/makedoc.c
b/makedoc.c
index
3148ca4
..
df72d5d
100644
(file)
--- a/
makedoc.c
+++ b/
makedoc.c
@@
-31,6
+31,7
@@
#include <ctype.h>
#include <errno.h>
#include <ctype.h>
#include <errno.h>
+#include <lib-lib/str.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
@@
-519,7
+520,7
@@
static void handle_confline (char *s)
if (!strcmp (buff, "}"))
break;
if (!strcmp (buff, "}"))
break;
-
strncpy (val + STRLEN (val), buff, sizeof (val) - STRLEN (val)
);
+
m_strcat(val, sizeof(val), buff
);
}
while ((s = get_token (buff, sizeof (buff), s)));
}
while ((s = get_token (buff, sizeof (buff), s)));
@@
-737,7
+738,7
@@
static void print_confline (const char *varname, int type, const char *val)
/* SGML based manual */
case F_SGML:
{
/* SGML based manual */
case F_SGML:
{
- add_s ("\n<m
uttng
-doc:vardef name=\"");
+ add_s ("\n<m
admutt
-doc:vardef name=\"");
sgml_fputs (varname);
add_s ("\">\n<para>Type: <literal>");
add_s (type2human (type));
sgml_fputs (varname);
add_s ("\">\n<para>Type: <literal>");
add_s (type2human (type));
@@
-1163,7
+1164,7
@@
static int print_it (int special, char *str, int docstat)
}
case SP_END_SECT:
{
}
case SP_END_SECT:
{
- add_s ("</m
uttng
-doc:vardef>\n");
+ add_s ("</m
admutt
-doc:vardef>\n");
break;
}
case SP_STR:
break;
}
case SP_STR: