]> granicus.if.org Git - llvm/commit
Use %z for size_t and avoid deprecated string functions
authorReid Kleckner <rnk@google.com>
Fri, 6 Jan 2017 18:22:18 +0000 (18:22 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 6 Jan 2017 18:22:18 +0000 (18:22 +0000)
commitd130989ed7b7e6e11d9b00c7509cf779490fbce6
tree104da9c419eb05b11290554d22b86e4366562275
parented5adf851089f03309b385031b77625dc9bdc854
Use %z for size_t and avoid deprecated string functions

This usage of strcpy and snprintf was certainly safe, but using them
sets off various deprecation and lint warnings. Easier to just write the
belt and suspenders version.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291256 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/TarWriter.cpp