diff options
-rw-r--r-- | cue-bin-split.c | 2 | ||||
-rw-r--r-- | misc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cue-bin-split.c b/cue-bin-split.c index 4ebd843..2e2a190 100644 --- a/cue-bin-split.c +++ b/cue-bin-split.c @@ -141,7 +141,7 @@ int main(int argc, char **argv) if (start_sample > finish_sample) { - fprintf(stderr, "ERROR: Finish time can't be before start time, skipping %s", out_fname); + fprintf(stderr, "ERROR: Finish time can't be before start time, skipping %s\n", out_fname); continue; } @@ -56,7 +56,7 @@ double get_sec() */ int construct_out_name(char *buffer, size_t buffer_size, char* format, unsigned int track) { - if (snprintf(buffer, buffer_size, format, track) == buffer_size) + if (snprintf(buffer, buffer_size, format, track) >= buffer_size - 1) { fprintf(stderr, "Filename too large for buffer (max %zd)\n", buffer_size); return -1; |