Parsing a part of a string of unknown length

If com contains the line to be parsed and you know the leadin is always 20 characters in length, how about:

// ...your code, then add:
int len = strlen(com);              // How long is the string?
strncpy(title, &com[19], len - 20); // Skip over 20 characters and copy the rest.

This still leaves the newline character at the end, but you can chop that off if you need to.