diff --git a/dummy/flrig.c b/dummy/flrig.c
index e75a70182..d3712ed56 100644
--- a/dummy/flrig.c
+++ b/dummy/flrig.c
@@ -950,7 +950,7 @@ static int flrig_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
if (p) *p=0; // remove any other pipe
char cmd_buf[MAXCMDLEN];
- sprintf(cmd_buf, "%s", ttmode);
+ sprintf(cmd_buf, "%s", pttmode);
free(ttmode);
char xml[MAXXMLLEN];
char *pxml=NULL;