Maybe something like this would be more readable:
```
strcpy(buf, mod->name);
strcat(buf, ":");
strcat(buf, name);