Skip to content

Commit 860c709

Browse files
emrebayrmemrebayram
and
emrebayram
authored
remove modification on jobId variable (aws#1729)
Co-authored-by: emrebayram <[email protected]>
1 parent 3ed4c66 commit 860c709

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

demos/jobs/jobs_demo_mosquitto/jobs_demo_mosquitto.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,7 @@ void on_message( struct mosquitto * m,
952952
}
953953
else
954954
{
955-
jobid[ jobidLength ] = '\0';
956-
warnx( "update failure for unknown job id: %s", jobid );
955+
warnx( "update failure for unknown job id: %.*s", jobidLength, jobid );
957956
}
958957

959958
break;

0 commit comments

Comments
 (0)