Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!alhena.usc.edu!ajayshah From: ajayshah@alhena.usc.edu (Ajay Shah) Newsgroups: comp.lang.c Subject: gcc -Wall fails to catch wrong use of calloc Message-ID: <33084@usc> Date: 22 May 91 19:57:26 GMT Sender: news@usc Organization: University of Southern California, Los Angeles, CA Lines: 20 Nntp-Posting-Host: alhena.usc.edu Originator: ajayshah@alhena.usc.edu Script started on Tue May 21 09:16:16 1991 [max 4] cat a.c #include int main() { char *p; p = (char *) malloc(100); p = (char *) realloc(200); return 0; } [max 5] gcc -Wall a.c [max 6] exit [max 7] script done on Tue May 21 09:16:49 1991 -- _______________________________________________________________________________ Ajay Shah, (213)734-3930, ajayshah@usc.edu The more things change, the more they stay insane. _______________________________________________________________________________