Fixed FP - invalidFunctionArgStr, found with daca@home: ftp://ftp.de.debian.org/debian/pool/main/i/ion/ion_3.2.1+dfsg.orig.tar.gz; ion-open-source/arch-rtems/pmqlsi.c:146:18: error: Invalid mq_send() argument nr 2. A nul-terminated string is required. [invalidFunctionArgStr]
This commit is contained in:
parent
8382ea7692
commit
a59e510cdc
|
@ -3026,14 +3026,15 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
||||||
<arg nr="2" direction="in">
|
<arg nr="2" direction="in">
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
<minsize type="argvalue" arg="3"/>
|
<minsize type="argvalue" arg="3"/>
|
||||||
<strz/>
|
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="3" direction="in">
|
<arg nr="3" direction="in">
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
<not-bool/>
|
<not-bool/>
|
||||||
|
<valid>0:</valid>
|
||||||
</arg>
|
</arg>
|
||||||
<arg nr="4" direction="in">
|
<arg nr="4" direction="in">
|
||||||
<not-bool/>
|
<not-bool/>
|
||||||
|
<valid>0:</valid>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
<!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_setattr.html -->
|
<!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_setattr.html -->
|
||||||
|
|
|
@ -35,6 +35,13 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
|
int invalidFunctionArgStr_mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio)
|
||||||
|
{
|
||||||
|
const char msg = '0';
|
||||||
|
(void) mq_send(mqdes, &msg, 1, 0);
|
||||||
|
return mq_send(mqdes, msg_ptr, msg_len, 0);
|
||||||
|
}
|
||||||
|
|
||||||
void invalidFunctionArgStr_mbsnrtowcs(void)
|
void invalidFunctionArgStr_mbsnrtowcs(void)
|
||||||
{
|
{
|
||||||
wchar_t wenough[10];
|
wchar_t wenough[10];
|
||||||
|
|
Loading…
Reference in New Issue