diff --git a/README.md b/README.md index 9cf6105..4edbf2c 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ ### TrackData [0x02] - [[4 bytes: playback time] - [dfpwm data: packet length - 4 bytes]] + [playback time: 4 bytes] + [[length: 4 bytes] [dfpwm data: length]] ## `.rip` format specification [0x72 0x69 0x70] diff --git a/src/rip-stream-server.c b/src/rip-stream-server.c index 9ce4838..ae645ff 100644 --- a/src/rip-stream-server.c +++ b/src/rip-stream-server.c @@ -221,7 +221,7 @@ static int client_read(struct client *client, slab_t *clients, int efd) { } } - if (count == 0 || buf != 'a') closing = 1; + if (count == 0 || buf != '\0') closing = 1; if (closing) { client_close(client, clients, efd);