xbolva00 abandoned this revision. xbolva00 added a comment. "strncpy() writes additional null bytes to dest to ensure that a total of n bytes are written" So we cant do this. (or we can if we know it the buf is zero initialized) https://reviews.llvm.org/D50556