cffd3ba283
strncpy should not be called with a "length" parameter which is based on the source string since it negates the benefits of using strncpy. this patch fixes the warning for linux, macosx and rtems Fixes #346 Change-Id: Ib2fb7637e9845545e4c15045e6be7c7ce8e0672b