X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fscpi%2Fscpi.c;h=82c95bfc7586850c0f8cd232b78c659707e6779f;hp=e2f5cd5870a8ec7d2fa61dc3eed6b2cb754246cc;hb=1c8901f744999a61f1eff7e7a7a5b21d2ab6019f;hpb=7ca40d2d1cd22ceb741d822c2630d05eafc43260 diff --git a/src/scpi/scpi.c b/src/scpi/scpi.c index e2f5cd58..82c95bfc 100644 --- a/src/scpi/scpi.c +++ b/src/scpi/scpi.c @@ -150,12 +150,12 @@ static int scpi_send_variadic(struct sr_scpi_dev_inst *scpi, /* Get length of buffer required. */ va_copy(args_copy, args); - len = vsnprintf(NULL, 0, format, args_copy); + len = sr_vsnprintf_ascii(NULL, 0, format, args_copy); va_end(args_copy); /* Allocate buffer and write out command. */ buf = g_malloc0(len + 2); - vsprintf(buf, format, args); + sr_vsprintf_ascii(buf, format, args); if (buf[len - 1] != '\n') buf[len] = '\n';