From 67aabdde877f237e74c6047ae48096d512fb936e Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Thu, 7 Jun 2012 13:51:02 -0700 Subject: [PATCH] oiiotool bug fix: bad argument parsing for --threads --- src/oiiotool/oiiotool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oiiotool/oiiotool.cpp b/src/oiiotool/oiiotool.cpp index 8bd05460c0..3758142b1e 100644 --- a/src/oiiotool/oiiotool.cpp +++ b/src/oiiotool/oiiotool.cpp @@ -143,8 +143,8 @@ Oiiotool::process_pending () static int set_threads (int argc, const char *argv[]) { - ASSERT (argc == 1); - OIIO::attribute ("threads", atoi(argv[0])); + ASSERT (argc == 2); + OIIO::attribute ("threads", atoi(argv[1])); return 0; }