summaryrefslogtreecommitdiff
path: root/src/if_perl.xs
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-23 15:04:17 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-23 15:04:17 +0100
commit2472ae81dff8c30f5d63db8ad2c937deae8be646 (patch)
tree8b082f20d56657deaab682fb910a5aa652fbf352 /src/if_perl.xs
parent0d13cce3453b2274c93c5015faa1993baaebace9 (diff)
downloadvim-git-2472ae81dff8c30f5d63db8ad2c937deae8be646.tar.gz
patch 8.1.0978: blob not tested with Perlv8.1.0978
Problem: Blob not tested with Perl. Solution: Add more test coverage. Fixes a crash. (Dominique Pelle, closes #4037)
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r--src/if_perl.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs
index 265564075..099d38677 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -1570,7 +1570,7 @@ Blob(SV* sv)
newsv = newSVpv("0z", 2);
for (i = 0; i < len; i++)
{
- sprintf(buf, "%02X", s[i]);
+ sprintf(buf, "%02X", (unsigned char)(s[i]));
sv_catpvn(newsv, buf, 2);
}
RETVAL = newsv;