diff options
author | Lars Koeller <lkoeller@FreeBSD.org> | 2003-10-30 12:22:15 +0000 |
---|---|---|
committer | Lars Koeller <lkoeller@FreeBSD.org> | 2003-10-30 12:22:15 +0000 |
commit | 055b16c9d8e389c41f7259bf1e630bf371512a83 (patch) | |
tree | 16c71023d8570adedf323ed0c104f98dcba7b4f3 /sysutils | |
parent | c3edcc05e3d2cababc3016c9d101fce8fe54d942 (diff) | |
download | ports-055b16c9d8e389c41f7259bf1e630bf371512a83.tar.gz ports-055b16c9d8e389c41f7259bf1e630bf371512a83.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/bacula-server/files/patch-var-64bit | 25 | ||||
-rw-r--r-- | sysutils/bacula/files/patch-var-64bit | 25 |
2 files changed, 0 insertions, 50 deletions
diff --git a/sysutils/bacula-server/files/patch-var-64bit b/sysutils/bacula-server/files/patch-var-64bit deleted file mode 100644 index 69d6ba73fc87..000000000000 --- a/sysutils/bacula-server/files/patch-var-64bit +++ /dev/null @@ -1,25 +0,0 @@ ---- src/lib/var.c.orig 2003-10-24 17:31:14.000000000 +0200 -+++ src/lib/var.c 2003-10-24 17:30:56.000000000 +0200 -@@ -2605,21 +2605,13 @@ - const char *fmt, va_list ap) - { - var_rc_t rc; -- va_list apbak; - char *cpBuf; -- int nBuf; -+ int nBuf = 5000; - - /* argument sanity checks */ - if (var == NULL || dst_ptr == NULL || fmt == NULL) - return VAR_RC(VAR_ERR_INVALID_ARGUMENT); - -- /* determine formatting buffer length */ -- apbak = ap; -- nBuf = var_mvsnprintf(NULL, 0, fmt, ap); -- ap = apbak; -- if (nBuf == -1) -- return VAR_RC(VAR_ERR_FORMATTING_FAILURE); -- - /* perform formatting */ - if ((cpBuf = (char *)malloc(nBuf+1)) == NULL) - return VAR_RC(VAR_ERR_OUT_OF_MEMORY); diff --git a/sysutils/bacula/files/patch-var-64bit b/sysutils/bacula/files/patch-var-64bit deleted file mode 100644 index 69d6ba73fc87..000000000000 --- a/sysutils/bacula/files/patch-var-64bit +++ /dev/null @@ -1,25 +0,0 @@ ---- src/lib/var.c.orig 2003-10-24 17:31:14.000000000 +0200 -+++ src/lib/var.c 2003-10-24 17:30:56.000000000 +0200 -@@ -2605,21 +2605,13 @@ - const char *fmt, va_list ap) - { - var_rc_t rc; -- va_list apbak; - char *cpBuf; -- int nBuf; -+ int nBuf = 5000; - - /* argument sanity checks */ - if (var == NULL || dst_ptr == NULL || fmt == NULL) - return VAR_RC(VAR_ERR_INVALID_ARGUMENT); - -- /* determine formatting buffer length */ -- apbak = ap; -- nBuf = var_mvsnprintf(NULL, 0, fmt, ap); -- ap = apbak; -- if (nBuf == -1) -- return VAR_RC(VAR_ERR_FORMATTING_FAILURE); -- - /* perform formatting */ - if ((cpBuf = (char *)malloc(nBuf+1)) == NULL) - return VAR_RC(VAR_ERR_OUT_OF_MEMORY); |