aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-ar
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2003-09-13 03:18:56 +0000
committerTanya Lattner <tonic@nondot.org>2003-09-13 03:18:56 +0000
commite3df92e9c18eed1f550babb0014827cd8a740112 (patch)
tree1fd88991083b70e852adbe33f4bbdb03fa09c51b /tools/llvm-ar
parentdcf0490fe5e76bd70630fc8d31f973bc49bfed00 (diff)
downloadexternal_llvm-e3df92e9c18eed1f550babb0014827cd8a740112.zip
external_llvm-e3df92e9c18eed1f550babb0014827cd8a740112.tar.gz
external_llvm-e3df92e9c18eed1f550babb0014827cd8a740112.tar.bz2
Fixed warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ar')
-rw-r--r--tools/llvm-ar/llvm-ar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp
index 0af2b05..10f83f8 100644
--- a/tools/llvm-ar/llvm-ar.cpp
+++ b/tools/llvm-ar/llvm-ar.cpp
@@ -112,7 +112,7 @@ bool WriteSymbolTable(std::ofstream &ArchiveFile) {
//Name of symbol table is '/'
Hdr.name[0] = '/';
- Hdr.name[1] = '/0';
+ Hdr.name[1] = '\0';
//Set the header trailer to a newline
memcpy(Hdr.fmag,ARFMAG,sizeof(ARFMAG));