Quotebuf[i++] = c;
Quotebuf[i] = '\0';
if (i == sizeof (Quotebuf) - 1 || c == '\n') {
- char buf[2 * SHORT_STRING];
+ char buf[2 * STRING];
int j = 0, offset = 0;
regmatch_t pmatch[1];
for (i = 0; i < offset; i++)
if (Quotebuf[i] != ' ')
j = i;
- strncpy (buf, Quotebuf, j + 1);
- strcpy (buf + j + 1, Quotebuf + j);
+ m_strncpy(buf, sizeof(buf), Quotebuf, j + 1);
+ m_strcpy(buf + j + 1, sizeof(buf) - j - 1, Quotebuf + j);
}
else
snprintf (buf, sizeof (buf), "%s%s", NONULL (s->prefix), Quotebuf);