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 "cmpi-base - Base OS CMPI Providers".
The branch, master has been updated
via a556de807af0c533a4f494d34628b7d077b42ee8 (commit)
from a9cf0b5d38e1bee8af79a807d8b362164c42518f (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 a556de807af0c533a4f494d34628b7d077b42ee8
Author: Dave Heller <hel...@us...>
Date: Thu Oct 23 12:12:22 2014 -0400
Fixed SBLIM-2737: bugfix for sprintf() handling
-----------------------------------------------------------------------
Summary of changes:
OSBase_Common.c | 8 +++++---
contributions.txt | 4 ++++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/OSBase_Common.c b/OSBase_Common.c
index 65d285b..3eb7871 100644
--- a/OSBase_Common.c
+++ b/OSBase_Common.c
@@ -257,6 +257,7 @@ signed short get_os_timezone() {
char *sse_to_cmpi_datetime_str(long sse, int local, int adj_dst) {
char *dt = malloc(26);
+ char *dt2 = malloc(26);
struct tm bdtime;
struct tm *(*func)();
int offset = 0;
@@ -282,12 +283,13 @@ char *sse_to_cmpi_datetime_str(long sse, int local, int adj_dst) {
offset = - timezone / 60; /* not adjusted for DST */
strftime(dt, 26, "%Y%m%d%H%M%S.000000", &bdtime);
- sprintf(dt, "%s%+04d", dt, offset);
+ sprintf(dt2, "%s%+04d", dt, offset);
+ free(dt);
}
_OSBASE_TRACE(4,
- ("--- sse_to_cmpi_datetime_str() : exiting, returned value: %s", dt));
- return dt;
+ ("--- sse_to_cmpi_datetime_str() : exiting, returned value: %s", dt2));
+ return dt2;
}
/* ---------------------------------------------------------------------------*/
diff --git a/contributions.txt b/contributions.txt
index 241b249..3ed41d9 100644
--- a/contributions.txt
+++ b/contributions.txt
@@ -30,3 +30,7 @@ Henning Sackewitz,
Klaus Kämpf, Novell
-----------------------
11/16/2013 [ SBLIM-2698 ] system name might have empty domainname
+
+Vitezslav Crhonek, Red Hat
+-----------------------
+10/24/2014 [ SBLIM-2737 ] bugfix for sprintf() handling
hooks/post-receive
--
cmpi-base - Base OS CMPI Providers
|