Skip to content

Commit 88054b2

Browse files
authored
Append newline after TOTP token
1 parent 33e1986 commit 88054b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tpm2-totp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ main(int argc, char **argv)
453453
&now_local);
454454
chkrc(rc, goto err);
455455
}
456-
printf("%s%06" PRIu64, timestr, totp);
456+
printf("%s%06\n" PRIu64, timestr, totp);
457457
break;
458458
case CMD_RESEAL:
459459
rc = tpm2totp_loadKey_nv(opt.nvindex, tcti_context, &keyBlob, &keyBlob_size);

0 commit comments

Comments
 (0)