#include <ctype.h>
#include <errno.h>
+#include <lib-lib/str.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
{
outbuf = realloc (outbuf, (++outcount) * sizeof (var_t));
outbuf[outcount - 1].seen = 0;
- outbuf[outcount - 1].name = strdup (name);
+ outbuf[outcount - 1].name = strdup(name);
outbuf[outcount - 1].descr = NULL;
}
}
if (lold == 0)
- outbuf[outcount - 1].descr = strdup (s);
+ outbuf[outcount - 1].descr = strdup(s);
else {
outbuf[outcount - 1].descr =
realloc (outbuf[outcount - 1].descr, lold + lnew + 1);
return;
}
- memset (val, 0, sizeof (val));
+ memset(val, 0, sizeof(val));
do {
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)));
/* SGML based manual */
case F_SGML:
{
- add_s ("\n<muttng-doc:vardef id=\"");
- sgml_id_fputs (varname);
- add_s ("\" name=\"");
+ add_s ("\n<madmutt-doc:vardef name=\"");
sgml_fputs (varname);
add_s ("\">\n<para>Type: <literal>");
add_s (type2human (type));
}
case SP_END_SECT:
{
- add_s ("</muttng-doc:vardef>\n");
+ add_s ("</madmutt-doc:vardef>\n");
break;
}
case SP_STR: