diff options
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index 45ae82cb81..884fb002ff 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -1331,7 +1331,7 @@ static int cs_insert_filelist(char *fname, char *ppath, char *flags, struct stat } else { /* Reallocate space for more connections. */ csinfo_size *= 2; - csinfo = realloc(csinfo, sizeof(csinfo_T)*csinfo_size); + csinfo = xrealloc(csinfo, sizeof(csinfo_T)*csinfo_size); } if (csinfo == NULL) return -1; @@ -1871,7 +1871,7 @@ static void cs_print_tags_priv(char **matches, char **cntxts, int num_matches) /* hopefully 'num' (num of matches) will be less than 10^16 */ newsize = (int)(strlen(csfmt_str) + 16 + strlen(lno)); if (bufsize < newsize) { - buf = (char *)realloc(buf, newsize); + buf = (char *)xrealloc(buf, newsize); if (buf == NULL) bufsize = 0; else @@ -1892,7 +1892,7 @@ static void cs_print_tags_priv(char **matches, char **cntxts, int num_matches) newsize = (int)(strlen(context) + strlen(cntxformat)); if (bufsize < newsize) { - buf = (char *)realloc(buf, newsize); + buf = (char *)xrealloc(buf, newsize); if (buf == NULL) bufsize = 0; else |