Yes and no, "%.*s" is used for printing a string that doesn't contain a NULL-terminating character, but I guess this doesn't fit the purpose here as the string will contain multiple '\0' character, and printing the string will stop at the very first one. I'll revert it to '%s'.