diff --git a/tools/llvm-ar/llvm-ar.cpp b/tools/llvm-ar/llvm-ar.cpp index 0af2b05b722..10f83f8c2e4 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));