Comment on Reflections on Curly Braces – Apple’s SSL Bug and What We Should Learn From ItparentComments−adsr12yAlternatively (assuming dst isn't a pointer): rv = strlcpy(dst, src, sizeof(dst)); check(rv == strlen(dst), "Error, src string truncated"); Or perhaps more clear: strlcpy(dst, src, sizeof(dst)); check(strlen(src) == strlen(dst), "Error, src string truncated");
Comments
Alternatively (assuming dst isn't a pointer):
Or perhaps more clear: