Change example-cdc

This commit is contained in:
NIIBE Yutaka
2016-05-23 17:42:21 +09:00
parent 72c3d59555
commit eeb354119c
3 changed files with 14 additions and 2 deletions

View File

@@ -142,8 +142,10 @@ main (int argc, const char *argv[])
if (size < 0)
break;
if (usec)
if (size)
{
size--;
s[0] = hexchar (size >> 4);
s[1] = hexchar (size & 0x0f);
s[2] = ':';