But why - there is a perfectly fine solution there already which uses the "new" string which you CAN modify. And of course, as Laserlight says, you must either use a char array or allocate some memory (and make sure that's at least 41 bytes, if we use the above strcat() type code).
But I would prefer to not use strcat at all.
--
Mats