Hi Vinicius, > This format specifier is GNU specific. > --- > test/ipctest.c | 12 ++++++------ > 1 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/test/ipctest.c b/test/ipctest.c > index cbfd78d..012de0a 100644 > --- a/test/ipctest.c > +++ b/test/ipctest.c > @@ -987,10 +987,10 @@ static gboolean input_cb(GIOChannel *gin, GIOCondition condition, gpointer data) > } > > IF_CMD(debug) { > - char *what = NULL; > + char what[15]; > int enable; > > - if (sscanf(line, "%*s %as %d", &what, &enable) != 1) > + if (sscanf(line, "%*s %s %d", what, &enable) != 1) > DBG("debug [stream_read|stream_write] [0|1]"); "Matches a sequence of non-white-space characters; the next pointer must be a pointer to character array that is long enough to hold the input sequence and the terminating null character ('\0'), which is added automatically." At least use alloca. And it is still pointer of pointer. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html