I'm getting the next error when running memcheck with valgrind:
Invalid read of size 1
==2511== at 0x4C29852: __GI_strcpy (mc_replace_strmem.c:313)
==2511== by 0x401A76: getstring (reader.c:125)
==2511== by 0x400A0E: main (reader.c:22)
==2511== Address 0x7fefffcfb is just below the stack ptr. To suppress, use: --workaround-gcc296-bugs=yes