diff options
Diffstat (limited to 'debian/patches/102994.patch')
-rw-r--r-- | debian/patches/102994.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/102994.patch b/debian/patches/102994.patch new file mode 100644 index 00000000..93a51709 --- /dev/null +++ b/debian/patches/102994.patch @@ -0,0 +1,23 @@ +Index: include/iprt/string.h +=================================================================== +--- a/include/iprt/string.h (revision 102993) ++++ b/include/iprt/string.h (revision 102994) +@@ -259,12 +259,16 @@ + */ + #if defined(RT_OS_LINUX) && defined(__KERNEL__) + # if (RTLNX_VER_MIN(4,3,0)) +-# define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) (void)strscpy((a_pDst), (a_pSrc), (a_cbDst)) ++# define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) \ ++ { \ ++ ssize_t _ret; \ ++ _ret = strscpy((a_pDst), (a_pSrc), (a_cbDst)); \ ++ } + # else /* < 3.16.60 */ + # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) strlcpy((a_pDst), (a_pSrc), (a_cbDst)) + # endif + #else /* !RT_OS_LINUX && !__KERNEL__ */ +-# define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) (void)strscpy((a_pDst), (a_pSrc), (a_cbDst)) ++# define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) strlcpy((a_pDst), (a_pSrc), (a_cbDst)) + #endif /* !RT_OS_LINUX && !__KERNEL__ */ + + |