diff options
author | ultrasystem <liio@qq.com> | 2014-05-12 21:17:19 +0800 |
---|---|---|
committer | ultrasystem <liio@qq.com> | 2014-05-12 21:17:19 +0800 |
commit | db2b85cbd42c17ef581e62c8b2363b6fc37e9617 (patch) | |
tree | d0bcaa181ef921837293a474aae75a267653282e /src/modules/systemlib/rc_check.c | |
parent | 47d21f0c572d3d70e3577cb510d3b305794574ba (diff) | |
download | px4-firmware-db2b85cbd42c17ef581e62c8b2363b6fc37e9617.tar.gz px4-firmware-db2b85cbd42c17ef581e62c8b2363b6fc37e9617.tar.bz2 px4-firmware-db2b85cbd42c17ef581e62c8b2363b6fc37e9617.zip |
Output a debug string is Invalid @ parameter #1
line 143 may be crash or buffer overflow. because the argument must is a pointer as char type that and have a valid buffer
Diffstat (limited to 'src/modules/systemlib/rc_check.c')
-rw-r--r-- | src/modules/systemlib/rc_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/systemlib/rc_check.c b/src/modules/systemlib/rc_check.c index 21e15ec56..975944eb7 100644 --- a/src/modules/systemlib/rc_check.c +++ b/src/modules/systemlib/rc_check.c @@ -140,7 +140,7 @@ int rc_calibration_check(int mavlink_fd) { /* sanity checks pass, enable channel */ if (count) { mavlink_log_critical(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1)); - warnx(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1)); + warnc(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1)); usleep(100000); } |