From 44de7726f81c7492b42e8a134eccbe878ed9d6fb Mon Sep 17 00:00:00 2001 From: Nagy Zsolt Date: Fri, 23 Jan 2015 18:25:17 +0100 Subject: [PATCH] Fix remaining character check --- src/cxxopts.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cxxopts.hpp b/src/cxxopts.hpp index 2059a4a..993ca68 100644 --- a/src/cxxopts.hpp +++ b/src/cxxopts.hpp @@ -387,7 +387,7 @@ namespace cxxopts throw argument_incorrect_type(text); } - if (!is.eof()) + if (is.rdbuf()->in_avail() != 0) { throw argument_incorrect_type(text); } -- libgit2 0.21.4