- // grab the first two words
- char* words[2];
- 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]);
+ /* FIXME: put a bound prefix on the %s to prevent buffer overflow */
+ int word_count = sscanf(raw, "%s%s", cmd->raw1, cmd->raw2);