Bug 945784: Prepends a newline to InvalidateCaches entry before writing to compatibility.ini; r=bbondy

This commit is contained in:
Aaron Klotz 2013-12-03 16:17:02 -07:00
parent de8e6adb5c
commit 8491afe059

View File

@ -2484,7 +2484,7 @@ WriteVersion(nsIFile* aProfileDir, const nsCString& aVersion,
PR_Write(fd, appDir.get(), appDir.Length());
}
static const char kInvalidationHeader[] = "InvalidateCaches=1" NS_LINEBREAK;
static const char kInvalidationHeader[] = NS_LINEBREAK "InvalidateCaches=1";
if (invalidateCache)
PR_Write(fd, kInvalidationHeader, sizeof(kInvalidationHeader) - 1);