not %x but %c
authoraaron@uhu.lan <aaron@uhu.lan>
Tue, 15 Jul 2008 08:30:11 +0000 (10:30 +0200)
committeraaron@uhu.lan <aaron@uhu.lan>
Tue, 15 Jul 2008 08:30:11 +0000 (10:30 +0200)
src/lq_plugin_default_ff.c

index 35e7798..25d719b 100644 (file)
@@ -259,7 +259,7 @@ void default_lq_clear_ff_hello(void *target) {
 const char *default_lq_print_ff(void *ptr, char separator, struct lqtextbuffer *buffer) {
   struct default_lq_ff *lq = ptr;
 
-  sprintf(buffer->buf, "%s%x%s",
+  sprintf(buffer->buf, "%s%c%s",
       fpmtoa(fpmidiv(itofpm((int)lq->valueLq), 255)),
       separator,
       fpmtoa(fpmidiv(itofpm((int)lq->valueNlq), 255)));