kopia lustrzana https://github.com/Hamlib/Hamlib
Fix clang warning in rigctl_parse.c
rodzic
2ff1f47da8
commit
4b442dba94
|
@ -4142,7 +4142,7 @@ declare_proto_rig(send_cmd)
|
||||||
{
|
{
|
||||||
char tmpbuf[64];
|
char tmpbuf[64];
|
||||||
/* text protocol */
|
/* text protocol */
|
||||||
strncpy(bufcmd, arg1, BUFSZ);
|
strncpy(bufcmd, arg1, BUFSZ-1);
|
||||||
strtok(bufcmd, "\0xa\0xd");
|
strtok(bufcmd, "\0xa\0xd");
|
||||||
bufcmd[BUFSZ - 2] = '\0';
|
bufcmd[BUFSZ - 2] = '\0';
|
||||||
cmd_len = strlen(bufcmd);
|
cmd_len = strlen(bufcmd);
|
||||||
|
@ -4245,8 +4245,7 @@ declare_proto_rig(send_cmd)
|
||||||
hexbuf = realloc(hexbuf, hexbufbytes);
|
hexbuf = realloc(hexbuf, hexbufbytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
strncat(hexbuf, hex, strlen(hex));
|
strncat(hexbuf, hex, hexbufbytes-1);
|
||||||
//fprintf(fout, "%s", hex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: binary=%s, retval=%d\n", __func__, hexbuf,
|
rig_debug(RIG_DEBUG_TRACE, "%s: binary=%s, retval=%d\n", __func__, hexbuf,
|
||||||
|
|
Ładowanie…
Reference in New Issue