+ + size = strscpy(str, strs[i], len); Check for error return from strscpy() + len -= size; + str += size;