diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 22:55:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 22:55:52 +0000 |
commit | a515bba5570eaaa264b1fb590f91b7b772b83d3f (patch) | |
tree | 48e51447595bd944be56da6f464132d219f63c6d /debian/patches/102989.patch | |
parent | Merging upstream version 7.0.16-dfsg. (diff) | |
download | virtualbox-a515bba5570eaaa264b1fb590f91b7b772b83d3f.tar.xz virtualbox-a515bba5570eaaa264b1fb590f91b7b772b83d3f.zip |
Adding debian version 7.0.16-dfsg-1.debian/7.0.16-dfsg-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/102989.patch')
-rw-r--r-- | debian/patches/102989.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/debian/patches/102989.patch b/debian/patches/102989.patch deleted file mode 100644 index f228c0d2..00000000 --- a/debian/patches/102989.patch +++ /dev/null @@ -1,34 +0,0 @@ -Index: include/iprt/string.h -=================================================================== ---- a/include/iprt/string.h (revision 102988) -+++ b/include/iprt/string.h (revision 102989) -@@ -245,7 +245,29 @@ - # define RT_BCOPY_UNFORTIFIED(a_pDst, a_pSrc, a_cbToCopy) memcpy((a_pDst), (a_pSrc), (a_cbToCopy)) - #endif /* !RT_OS_LINUX && !__KERNEL__ */ - -+/** @def RT_STRSCPY -+ * Copy string and NULL-terminate output buffer. -+ * -+ * This macro should mostly be used in Linux kernel code. This is -+ * the replacement for deprecated strlcpy. It was deprecated since 3.16.60 -+ * when strscpy was introduced as an alternative. Finally, strlcpy was -+ * completely removed from kernel code in 6.8.0. -+ * -+ * @param a_pDst Pointer to the destination string buffer. -+ * @param a_pSrc Pointer to the source NULL-terminated string buffer. -+ * @param a_cbToCopy Size of destination buffer.. -+ */ -+#if defined(RT_OS_LINUX) && defined(__KERNEL__) -+# if (RTLNX_VER_MIN(3,16,60)) -+# define RT_STRSCPY(a_pDst, a_pSrc, a_cbToCopy) strscpy((a_pDst), (a_pSrc), (a_cbToCopy)) -+# else /* < 3.16.60 */ -+# define RT_STRSCPY(a_pDst, a_pSrc, a_cbToCopy) strlcpy((a_pDst), (a_pSrc), (a_cbToCopy)) -+# endif -+#else /* !RT_OS_LINUX && !__KERNEL__ */ -+# define RT_STRSCPY(a_pDst, a_pSrc, a_cbToCopy) strscpy((a_pDst), (a_pSrc), (a_cbToCopy)) -+#endif /* !RT_OS_LINUX && !__KERNEL__ */ - -+ - #ifdef IN_RING3 - - /** |