From: Bert Vermeulen Date: Fri, 27 Jan 2012 00:14:01 +0000 (+0100) Subject: srd: use format string where one is expected X-Git-Tag: libsigrokdecode-0.1.0~92 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=568112ce6de82135b0bfd7b5319ffdd611e6b030;p=libsigrokdecode.git srd: use format string where one is expected --- diff --git a/log.c b/log.c index c89a74b..829bc15 100644 --- a/log.c +++ b/log.c @@ -166,7 +166,7 @@ static int srd_logv(void *data, int loglevel, const char *format, va_list args) return SRD_OK; /* TODO? */ if (srd_log_domain[0] != '\0') - fprintf(stderr, srd_log_domain); + fprintf(stderr, "%s", srd_log_domain); ret = vfprintf(stderr, format, args); fprintf(stderr, "\n");