version 1.161, 2010/08/07 20:57:33 |
version 1.162, 2010/08/08 14:51:32 |
Line 776 mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off |
|
Line 776 mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off |
|
sv = i; |
sv = i; |
|
|
/* |
/* |
* Copy the first word into a nil-terminated buffer. Stop |
* Copy the first word into a nil-terminated buffer. |
* copying when a tab, space, or eoln is encountered. |
* Stop copying when a tab, space, or eoln is encountered. |
*/ |
*/ |
|
|
for (j = 0; j < 4; j++, i++) |
j = 0; |
if ('\0' == (mac[j] = buf[i])) |
while (j < 4 && '\0' != buf[i] && ' ' != buf[i] && '\t' != buf[i]) |
break; |
mac[j++] = buf[i++]; |
else if (' ' == buf[i] || '\t' == buf[i]) |
|
break; |
|
|
|
mac[j] = '\0'; |
mac[j] = '\0'; |
|
|
if (j == 4 || j < 2) { |
if (j == 4 || j < 2) { |