summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pack.c b/pack.c
index 903f5a9bc0..fe72d6ad35 100644
--- a/pack.c
+++ b/pack.c
@@ -1029,7 +1029,7 @@ pack_unpack(str, fmt)
while (s < send) {
if (*s == '=') {
if (++s == send) break;
- if (*s != '\n' && s < send - 1) {
+ if (*s != '\n') {
if ((c1 = hex2num(*s)) == -1) break;
if (++s == send) break;
if ((c2 = hex2num(*s)) == -1) break;