When the number of bytes written to the malloc'ed buffer is larger
than the argument string size, copy as many bytes as will fit (including a terminating '\0'), rather than not copying anything. This to make it satisfy the C99 spec.
Showing
Please
register
or
sign in
to comment