[OpenSRF-GIT] OpenSRF branch rel_2_2 updated. osrf_rel_2_2_0-2-g0a19073
Evergreen Git
git at git.evergreen-ils.org
Tue Aug 6 13:40:23 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, rel_2_2 has been updated
via 0a19073843476c02a168af1c00d6ccc5e0c03a14 (commit)
from 312a1d9f61aefc69602e7db4f6fe82e7b84d7207 (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 0a19073843476c02a168af1c00d6ccc5e0c03a14
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