On Thu, Nov 26, 2009 at 3:42 AM, Jordi Soucheiron <[email protected]
> wrote:

> >    snprintf(debugbuf, 256, "  +  Accelerometer Started\n");
> > But instead of moving the string to the debugbuf keeps the same
> > information just as if "  +  Accelerometer Started\n" was a null
> > string.
>

Just on a lark---does the behavior change when you use 255 instead of 256 as
the maximum size in the snprintf() call? If that was the case, perhaps the
compiler treats that variable (which normally should be of the type size_t)
as uint8_t, truncating it to zero, which, if true, would explain the
behavior you see.

Reply via email to