Skip to content

Commit 86ce4bb

Browse files
smoeandypugh
authored andcommitted
snprintf uses %d on a double (issue 2784)
1 parent 6ded497 commit 86ce4bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/emc/usr_intf/emcrsh.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ static cmdResponseType getTool(char *s, connectionRecType *context)
17131713

17141714
static cmdResponseType getToolOffset(char *s, connectionRecType *context)
17151715
{
1716-
const char *pToolOffsetStr = "TOOL_OFFSET %d";
1716+
const char *pToolOffsetStr = "TOOL_OFFSET %f";
17171717

17181718
snprintf(context->outBuf, sizeof(context->outBuf), pToolOffsetStr, emcStatus->task.toolOffset.tran.z);
17191719
return rtNoError;

0 commit comments

Comments
 (0)