GauthamBanasandra opened a new pull request #2818:
URL: https://github.com/apache/hadoop/pull/2818
* strncpy reports a warning if the
destination string isn't null
terminated.
* The scenario here is that the string
is deliberately not null terminated
since we want to imperatively suffix
a PATH_SEPARATOR at the end.
* Thus, the warning reported by strncpy
even though valid, isn't applicable.
* Hence we replace strncpy with memcpy
which doesn't worry if the string
is null terminated or not.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]