summaryrefslogtreecommitdiff
path: root/support.cc
diff options
context:
space:
mode:
authorRod Smith <rodsmith@rodsbooks.com>2017-07-23 11:50:17 -0400
committerRod Smith <rodsmith@rodsbooks.com>2017-07-23 11:50:17 -0400
commit0dfa506ba6e999c511dd69b688e24ab8884f4a1a (patch)
tree36d0d288c25879e8aef7df16bc46f5ae3bac77e6 /support.cc
parent503e9ada12d38394381442a944d5c9da847800b6 (diff)
downloadsgdisk-0dfa506ba6e999c511dd69b688e24ab8884f4a1a.tar.gz
Added a couple of new verification checks and minor tweaks.
Diffstat (limited to 'support.cc')
-rw-r--r--support.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/support.cc b/support.cc
index d96da2d..bc91c6e 100644
--- a/support.cc
+++ b/support.cc
@@ -77,7 +77,7 @@ uint64_t GetNumber(uint64_t low, uint64_t high, uint64_t def, const string & pro
cin.getline(line, 255);
if (!cin.good())
exit(5);
- num = sscanf(line, "%ld", &response);
+ num = sscanf(line, "%lld", &response);
if (num == 1) { // user provided a response
if ((response < low) || (response > high))
cout << "Value out of range\n";