Changeset 102994 in vbox for trunk/include
- Timestamp:
- Jan 22, 2024 6:06:29 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 161226
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/string.h
r102993 r102994 260 260 #if defined(RT_OS_LINUX) && defined(__KERNEL__) 261 261 # if (RTLNX_VER_MIN(4,3,0)) 262 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) (void)strscpy((a_pDst), (a_pSrc), (a_cbDst)) 262 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) \ 263 { \ 264 ssize_t _ret; \ 265 _ret = strscpy((a_pDst), (a_pSrc), (a_cbDst)); \ 266 } 263 267 # else /* < 3.16.60 */ 264 268 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) strlcpy((a_pDst), (a_pSrc), (a_cbDst)) 265 269 # endif 266 270 #else /* !RT_OS_LINUX && !__KERNEL__ */ 267 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) (void)strscpy((a_pDst), (a_pSrc), (a_cbDst))271 # define RT_STRSCPY(a_pDst, a_pSrc, a_cbDst) strlcpy((a_pDst), (a_pSrc), (a_cbDst)) 268 272 #endif /* !RT_OS_LINUX && !__KERNEL__ */ 269 273
Note:
See TracChangeset
for help on using the changeset viewer.