From 29e976878fd1b7913498ba64a824c9f68d938142 Mon Sep 17 00:00:00 2001 From: "Brian G. Lucas" Date: Thu, 10 May 2018 11:55:55 -0500 Subject: [PATCH] Fix a format so that it works with Windows. Can't test it because I have no Windows machines. --- kenwood/thd72.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kenwood/thd72.c b/kenwood/thd72.c index fc4569234..13e3f09fc 100644 --- a/kenwood/thd72.c +++ b/kenwood/thd72.c @@ -265,7 +265,7 @@ static int thd72_set_freq(RIG *rig, vfo_t vfo, freq_t freq) retval = thd72_get_freq_info(rig, vfo, buf); if (retval != RIG_OK) return retval; - sprintf(fbuf, "%010ld", (int64_t)freq); + sprintf(fbuf, "%010"PRIll, (int64_t)freq); memcpy(buf+5, fbuf, 10); retval = kenwood_simple_transaction(rig, buf, 52); return retval;