I don't that that everything that is after the first NULL byte here is guaranteed to be NULL.  To ensure maximum portability you should do this.