aboutsummaryrefslogtreecommitdiffstats
path: root/qpdf/pdf_from_scratch.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-29 18:27:59 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-29 18:28:32 +0200
commit1868a10f8b06631362618bfc85ca8646da4b4b71 (patch)
treec3029002f777a9904bfa3dff559daea989c79025 /qpdf/pdf_from_scratch.cc
parent742190bd98c0981a07cb39a8eae1e99d909ad5ae (diff)
downloadqpdf-1868a10f8b06631362618bfc85ca8646da4b4b71.tar.zst
Replace all atoi calls with QUtil::string_to_int
The latter catches underflow/overflow.
Diffstat (limited to 'qpdf/pdf_from_scratch.cc')
-rw-r--r--qpdf/pdf_from_scratch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpdf/pdf_from_scratch.cc b/qpdf/pdf_from_scratch.cc
index 10ef5512..967025df 100644
--- a/qpdf/pdf_from_scratch.cc
+++ b/qpdf/pdf_from_scratch.cc
@@ -107,7 +107,7 @@ int main(int argc, char* argv[])
try
{
- int n = atoi(argv[1]);
+ int n = QUtil::string_to_int(argv[1]);
runtest(n);
}
catch (std::exception& e)