diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-23 15:04:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-23 15:04:17 +0100 |
commit | 2472ae81dff8c30f5d63db8ad2c937deae8be646 (patch) | |
tree | 8b082f20d56657deaab682fb910a5aa652fbf352 /src/if_perl.xs | |
parent | 0d13cce3453b2274c93c5015faa1993baaebace9 (diff) | |
download | vim-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.xs | 2 |
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; |