diff options
author | mnag <mnag@FreeBSD.org> | 2005-12-09 14:55:34 +0000 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-12-09 14:55:34 +0000 |
commit | 6357d01f1d94cc404ffb706237c1dc9076108cb4 (patch) | |
tree | a3273a910389226366a615c53d70b25c8b083400 /misc | |
parent | 196dccaaec7ed31a6be7c68ec60a3a6aced82f96 (diff) | |
download | FreeBSD-ports-6357d01f1d94cc404ffb706237c1dc9076108cb4.zip FreeBSD-ports-6357d01f1d94cc404ffb706237c1dc9076108cb4.tar.gz |
Added forgotten patch
Notified by: Vasil Dimov <vd@datamax.bg>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ossp-uuid/files/patch-uuid_str.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/misc/ossp-uuid/files/patch-uuid_str.c b/misc/ossp-uuid/files/patch-uuid_str.c new file mode 100644 index 0000000..f88d2bc --- /dev/null +++ b/misc/ossp-uuid/files/patch-uuid_str.c @@ -0,0 +1,32 @@ +--- uuid_str.c.orig Tue Mar 29 21:39:51 2005 ++++ uuid_str.c Thu Dec 8 18:46:13 2005 +@@ -690,8 +690,10 @@ + { + char *rv; + int n; ++ va_list ap_tmp; + +- n = str_vsnprintf(NULL, 0, fmt, ap); ++ va_copy(ap_tmp, ap); ++ n = str_vsnprintf(NULL, 0, fmt, ap_tmp); + if ((rv = (char *)malloc(n+1)) == NULL) + return NULL; + str_vsnprintf(rv, n+1, fmt, ap); +@@ -720,6 +722,7 @@ + { + int rv; + size_t n; ++ va_list ap_tmp; + + if (str == NULL) + return -1; +@@ -729,7 +732,8 @@ + } + else { + n = strlen(*str); +- rv = str_vsnprintf(NULL, 0, fmt, ap); ++ va_copy(ap_tmp, ap); ++ rv = str_vsnprintf(NULL, 0, fmt, ap_tmp); + if ((*str = (char *)realloc(*str, n+rv+1)) == NULL) + return -1; + str_vsnprintf((*str)+n, rv+1, fmt, ap); |