[comp.sys.mac.programmer] NULL pointer problem in THINK_C? Solution...

kocks@jessica.stanford.edu (Peter Kocks) (08/17/90)

Thanks to all those who replied...

This was an interesting bug (for me anyway).
I was using a linked list with nodes of the following form:

	char string[100];
        node_ptr  next;

I accidently changed the 101 element of string in the program.  This
changed next a little bit, but not enough to show up in the debugger
(that is, the debugger showed next == NULL).  So, when I transversed
the list, I went right off the end.  

Thanks again for help.

-- Peter Kocks
   kocks@jessica.stanford.edu