Skip to content
Browse files

Print usage instructions

  • Loading branch information...
1 parent f33000c commit c2f4a1d04959e69d45cfd23fade9cd9e9ede0c73 @b4winckler committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/lxbread.c
View
5 src/lxbread.c
@@ -206,7 +206,10 @@ void print_data(const int32_t *data, long size, map_t txt)
int main(int argc, char *argv[])
{
- assert(argc == 2);
+ if (argc != 2) {
+ fprintf(stderr, "usage: lxbread LXBFILE\n");
+ return -1;
+ }
long size;
char *buf = read_file(argv[1], &size);

0 comments on commit c2f4a1d

Please sign in to comment.
Something went wrong with that request. Please try again.