Minor nitpick: `sizeof(text) - 1` to make it easier to read.