[BACK]Return to mdoc_action.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/Attic/mdoc_action.c between version 1.7 and 1.8

version 1.7, 2009/06/21 19:40:15 version 1.8, 2009/06/23 23:02:54
Line 658 
Line 658 
          * column field.  Then, delete the head children.           * column field.  Then, delete the head children.
          */           */
   
         for (i = 0, nn = m->last->child; nn; nn = nn->next, i++)          n->args->argv[c].sz = (size_t)m->last->nchild;
                 /* Count children. */;          n->args->argv[c].value = malloc
                   ((size_t)m->last->nchild * sizeof(char *));
   
         n->args->argv[c].sz = (size_t)i;  
         n->args->argv[c].value = malloc((size_t)i * sizeof(char *));  
   
         for (i = 0, nn = m->last->child; nn; i++) {          for (i = 0, nn = m->last->child; nn; i++) {
                 n->args->argv[c].value[i] = nn->string;                  n->args->argv[c].value[i] = nn->string;
                 nn->string = NULL;                  nn->string = NULL;
Line 672 
Line 670 
                 mdoc_node_free(nnp);                  mdoc_node_free(nnp);
         }          }
   
           m->last->nchild = 0;
         m->last->child = NULL;          m->last->child = NULL;
   
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8