aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-12-30 13:58:30 +0100
committerLorenz Meier <lm@inf.ethz.ch>2012-12-30 13:58:30 +0100
commit668d1b330114fefc0ae7a6c476074f2c263c1476 (patch)
treefb3c3129d82405091f949422518d0fee1dddd68b /apps
parentf6ea42ab5e886b3475350c5dab95b5985bda26bc (diff)
downloadpx4-firmware-668d1b330114fefc0ae7a6c476074f2c263c1476.tar.gz
px4-firmware-668d1b330114fefc0ae7a6c476074f2c263c1476.tar.bz2
px4-firmware-668d1b330114fefc0ae7a6c476074f2c263c1476.zip
Removed text reuse, causing crash with stack trace
Diffstat (limited to 'apps')
-rw-r--r--apps/px4io/mixer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/px4io/mixer.cpp b/apps/px4io/mixer.cpp
index d21b3a898..6b37d83ab 100644
--- a/apps/px4io/mixer.cpp
+++ b/apps/px4io/mixer.cpp
@@ -220,11 +220,11 @@ mixer_handle_text(const void *buffer, size_t length)
if (resid != mixer_text_length) {
debug("used %u", mixer_text_length - resid);
- /* copy any leftover text to the base of the buffer for re-use */
- if (resid > 0)
- memcpy(&mixer_text[0], &mixer_text[mixer_text_length - resid], resid);
+ // copy any leftover text to the base of the buffer for re-use
+ // if (resid > 0)
+ // memcpy(&mixer_text[0], &mixer_text[mixer_text_length - resid], resid);
- mixer_text_length = resid;
+ // mixer_text_length = resid;
}
break;