Skip to content

Commit 31d0b0b

Browse files
committed
posix.cfg: Improved configuration for wcsnrtombs().
1 parent 89ae22c commit 31d0b0b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

cfg/posix.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
<not-bool/>
4141
<valid>0:</valid>
4242
</arg>
43-
<arg nr="5" direction="in">
43+
<arg nr="5" direction="inout">
4444
<not-uninit/>
45-
<not-null/>
4645
</arg>
4746
</function>
4847
<!-- https://man7.org/linux/man-pages/man3/aio_read.3.html -->

test/cfg/posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ size_t nullPointer_wcsnrtombs(char *restrict dest, const wchar_t **restrict src,
5353
(void)wcsnrtombs(NULL,src,nwc,len,ps);
5454
// cppcheck-suppress nullPointer
5555
(void)wcsnrtombs(dest,NULL,nwc,len,ps);
56-
// cppcheck-suppress nullPointer
56+
// It is allowed to set the last arg to NULL
5757
(void)wcsnrtombs(dest,src,nwc,len,NULL);
5858
return wcsnrtombs(dest,src,nwc,len,ps);
5959
}

0 commit comments

Comments
 (0)