Fixed warning.
authorTanya Lattner <tonic@nondot.org>
Sat, 13 Sep 2003 03:18:56 +0000 (03:18 +0000)
committerTanya Lattner <tonic@nondot.org>
Sat, 13 Sep 2003 03:18:56 +0000 (03:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8505 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-ar/llvm-ar.cpp

index 0af2b05b722fb60854b19ac930d504b6bbf5f4a7..10f83f8c2e4ae571930d1fbc0a0bb961b10157f4 100644 (file)
@@ -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));