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