[BACK]Return to man.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/man.c between version 1.85 and 1.86

version 1.85, 2010/08/07 20:57:33 version 1.86, 2010/08/08 14:51:32
Line 480  man_pmacro(struct man *m, int ln, char *buf, int offs)
Line 480  man_pmacro(struct man *m, int ln, char *buf, int offs)
   
         ppos = i;          ppos = i;
   
         /* Copy the first word into a nil-terminated buffer. */          /*
            * Copy the first word into a nil-terminated buffer.
            * 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])  
                         break;  
   
         mac[j] = '\0';          mac[j] = '\0';
   
         if (j == 4 || j < 1) {          if (j == 4 || j < 1) {

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86

CVSweb