summaryrefslogtreecommitdiffstats
path: root/src/viewbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/viewbox.cpp')
-rw-r--r--src/viewbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewbox.cpp b/src/viewbox.cpp
index e46fe005c..f59909abc 100644
--- a/src/viewbox.cpp
+++ b/src/viewbox.cpp
@@ -103,7 +103,7 @@ void SPViewBox::set_preserveAspectRatio(const gchar* value) {
int len = e - p;
- if ( (len > 8) || (len < 256) ) { // note the extra check for buffer overflow
+ if (len > 8) { // Can't have buffer overflow as 8 < 256
return;
}