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

Diff for /src/usr.bin/patch/pch.c between version 1.18 and 1.19

version 1.18, 2003/07/21 14:27:35 version 1.19, 2003/07/21 14:30:31
Line 82 
Line 82 
 {  {
 #ifndef lint  #ifndef lint
         if (p_line == Null(char **))          if (p_line == Null(char **))
                 p_line = (char **) malloc((MEM) hunkmax * sizeof(char *));                  p_line = (char **) malloc((size_t) hunkmax * sizeof(char *));
         if (p_len == Null(short *))          if (p_len == Null(short *))
                 p_len = (short *) malloc((MEM) hunkmax * sizeof(short));                  p_len = (short *) malloc((size_t) hunkmax * sizeof(short));
 #endif  #endif
         if (p_char == Nullch)          if (p_char == Nullch)
                 p_char = (char *) malloc((MEM) hunkmax * sizeof(char));                  p_char = (char *) malloc((size_t) hunkmax * sizeof(char));
 }  }
   
 /*  /*
Line 105 
Line 105 
          */           */
         assert(p_line != Null(char **) &&p_len != Null(short *) &&p_char != Nullch);          assert(p_line != Null(char **) &&p_len != Null(short *) &&p_char != Nullch);
 #ifndef lint  #ifndef lint
         p_line = (char **) realloc((char *) p_line, (MEM) hunkmax * sizeof(char *));          p_line = (char **) realloc((char *) p_line, hunkmax * sizeof(char *));
         p_len = (short *) realloc((char *) p_len, (MEM) hunkmax * sizeof(short));          p_len = (short *) realloc((char *) p_len, hunkmax * sizeof(short));
         p_char = (char *) realloc((char *) p_char, (MEM) hunkmax * sizeof(char));          p_char = (char *) realloc((char *) p_char, hunkmax * sizeof(char));
 #endif  #endif
         if (p_line != Null(char **) &&p_len != Null(short *) &&p_char != Nullch)          if (p_line != Null(char **) &&p_len != Null(short *) &&p_char != Nullch)
                 return;                  return;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19