[OpenSRF-GIT] OpenSRF branch master updated. 135fa8cf5bdcf7a9cbdf75931734c86fd09489ef
Evergreen Git
git at git.evergreen-ils.org
Tue Aug 6 13:39:59 EDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OpenSRF".
The branch, master has been updated
via 135fa8cf5bdcf7a9cbdf75931734c86fd09489ef (commit)
from cd6dcccb7b21d5afe0ff38d901a806e6415c496e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 135fa8cf5bdcf7a9cbdf75931734c86fd09489ef
Author: Pasi Kallinen <pasi.kallinen at pttk.fi>
Date: Tue Aug 6 16:56:06 2013 +0300
LP#1208860: fix sprintf without format string.
Fixes error preventing installation on Debian testing and
removes warning on earlier versions of Debian.
Signed-off-by: Pasi Kallinen <pasi.kallinen at pttk.fi>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
diff --git a/src/gateway/osrf_http_translator.c b/src/gateway/osrf_http_translator.c
index f829fa0..cec0d4e 100644
--- a/src/gateway/osrf_http_translator.c
+++ b/src/gateway/osrf_http_translator.c
@@ -480,7 +480,7 @@ static int osrfHttpTranslatorProcess(osrfHttpTranslator* trans) {
buffer_chomp(buf); // chomp off the closing array bracket
char* body = osrfListGetIndex(trans->messages, i);
char newbuf[strlen(body)];
- sprintf(newbuf, body+1); // chomp off the opening array bracket
+ sprintf(newbuf, "%s", body+1); // chomp off the opening array bracket
OSRF_BUFFER_ADD_CHAR(buf, ',');
OSRF_BUFFER_ADD(buf, newbuf);
}
-----------------------------------------------------------------------
Summary of changes:
src/gateway/osrf_http_translator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
OpenSRF
More information about the opensrf-commits
mailing list