[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone: e3bb68c53c351f411ea4505400c
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone: e3bb68c53c351f411ea4505400c16c8d9f252013 |
Date: |
Mon, 24 Oct 2011 23:41:13 +0200 (CEST) |
revision: e3bb68c53c351f411ea4505400c16c8d9f252013
date: 2011-10-24T21:40:41
author: Richard Levitte <address@hidden>
branch: net.venge.monotone
changelog:
* src/cmd.cc: Since the first string isn't a format string, let's not
pretend it is. Instead, use fputs(), that's more efficient.
The backgrond for this is Debian, where there are options to build
with the following settings:
CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security
CPPFLAGS=-D_FORTIFY_SOURCE=2
CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Wformat-security -Werror=format-security
manifest:
format_version "1"
new_manifest [d333058f5b44b9c0cdd0f8852c143611c286c823]
old_revision [06738e14fae8309878e62cab9ea191be8fe891ce]
patch "src/cmd.cc"
from [47891700f02feb1a6278c175fc56f5253c91ea49]
to [94f7a433246032017e7c9a61645903feef68128e]
============================================================
--- src/cmd.cc 47891700f02feb1a6278c175fc56f5253c91ea49
+++ src/cmd.cc 94f7a433246032017e7c9a61645903feef68128e
@@ -974,7 +974,7 @@ CMD_NO_WORKSPACE(manpage, "manpage", "",
F("could not execute man page formatter command '%s': %s")
% cmd % strerror(errno));
- fprintf(fp, ss.str().c_str());
+ fputs(ss.str().c_str(), fp);
pclose(fp);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone: e3bb68c53c351f411ea4505400c16c8d9f252013,
code <=