Permalink
Browse files

Bug fix in oggpatch: use output_file, not sys.argv[1].

  • Loading branch information...
1 parent 2acc66b commit 067c84d599cfa7b1100aab2e441dfa8e9f76b472 @Vultaire committed Jun 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 r21buddy/oggpatch.py
View
@@ -473,7 +473,7 @@ def patch_file(input_file, target_length=TARGET_LENGTH,
output_file = output_file
if verbose:
print "Writing patched file to", output_file
- with open(sys.argv[1], "wb") as outfile:
+ with open(output_file, "wb") as outfile:
for bitstream in bitstreams:
bitstream.write_to_file(outfile)
elif verbose:

0 comments on commit 067c84d

Please sign in to comment.