Group :: Text tools
RPM: gnupg2
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0020-ALT-Disable-own-copy-of-xtryreallocarray.patch
Download
Download
From 8cffa0718527e462b7054fbf2c52da7d5a71ec9b Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <legion@altlinux.org>
Date: Mon, 9 Jan 2023 20:28:05 +0300
Subject: ALT: Disable own copy of xtryreallocarray
Signed-off-by: Alexey Gladkov <legion@altlinux.org>
---
common/xasprintf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/xasprintf.c b/common/xasprintf.c
index 7e37e5be6..8598e55a2 100644
--- a/common/xasprintf.c
+++ b/common/xasprintf.c
@@ -70,7 +70,7 @@ xtryasprintf (const char *fmt, ...)
return buf;
}
-
+#if 0
/* This is safe version of realloc useful for reallocing a calloced
* array. There are two ways to call it: The first example
* reallocates the array A to N elements each of SIZE but does not
@@ -121,3 +121,4 @@ xtryreallocarray (void *a, size_t oldnmemb, size_t nmemb, size_t size)
}
return p;
}
+#endif
--
2.25.4