summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Name.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_Name.cc')
-rw-r--r--libqpdf/QPDF_Name.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDF_Name.cc b/libqpdf/QPDF_Name.cc
index 26bd8263..0c2082c4 100644
--- a/libqpdf/QPDF_Name.cc
+++ b/libqpdf/QPDF_Name.cc
@@ -21,10 +21,10 @@ QPDF_Name::normalizeName(std::string const& name)
return name;
}
std::string result;
- result += name[0];
+ result += name.at(0);
for (unsigned int i = 1; i < name.length(); ++i)
{
- char ch = name[i];
+ char ch = name.at(i);
// Don't use locale/ctype here; follow PDF spec guidelines.
if (strchr("#()<>[]{}/%", ch) || (ch < 33) || (ch > 126))
{