Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

benc2json not working in reverse

  • Loading branch information...
commit 73e12e11c03495f1b0703e344658454f415db27c 1 parent 5252b3e
Caleb James DeLisle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  benc2json.c
View
2  benc2json.c
@@ -39,7 +39,7 @@ int main(int argc, char** argv)
const struct BencSerializer* parser = StandardBencSerializer_get();
const struct BencSerializer* serializer = JsonBencSerializer_get();
- if (argc > 1 && !strcmp(argv[0], "-r")) {
+ if (argc > 1 && !strcmp(argv[1], "-r")) {
const struct BencSerializer* p = parser;
parser = serializer;
serializer = p;
Please sign in to comment.
Something went wrong with that request. Please try again.