// grab the first two words
char* words[2];
- words[0] = (char*) xmalloc(strlen(raw));
- words[1] = (char*) xmalloc(strlen(raw));
+ words[0] = (char*) xmalloc(strlen(raw) + 1);
+ words[1] = (char*) xmalloc(strlen(raw) + 1);
int word_count = sscanf(raw, "%s%s", words[0], words[1]);
// make space for substrings and zero it out
*v = 0;
}
-/* I/O routines (speak, pspeak, rspeak, GETIN, YES) */
+/* I/O routines (speak, pspeak, rspeak, get_input, yes) */
void vspeak(const char* msg, va_list ap)
{