Fixed the string initialization. Memory needs to be allocated for the string or else unpredictable things will happen as things are written to that the variables c or s.
Updated KR 2.4 to allocate memory for the strings to avoid segmentation faults.