From 3246568c82b8882e6b54f15d56523fc35f606089 Mon Sep 17 00:00:00 2001 From: px4dev Date: Mon, 20 Aug 2012 17:59:12 -0700 Subject: [PATCH] sscanf field widths seem to be broken, don't use them. --- apps/systemlib/mixer/mixer_group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/systemlib/mixer/mixer_group.cpp b/apps/systemlib/mixer/mixer_group.cpp index bc944ccd9b..44a33bf8b2 100644 --- a/apps/systemlib/mixer/mixer_group.cpp +++ b/apps/systemlib/mixer/mixer_group.cpp @@ -217,7 +217,7 @@ mixer_load_multirotor(Mixer::ControlCallback control_cb, uintptr_t cb_handle, co char geomname[8]; int s[4]; - if (sscanf(buf, "R: %7s %d %d %d %d", geomname, &s[0], &s[1], &s[2], &s[3]) != 5) { + if (sscanf(buf, "R: %s %d %d %d %d", geomname, &s[0], &s[1], &s[2], &s[3]) != 5) { debug("multirotor parse failed on '%s'", buf); return nullptr; }