mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.1.0978: blob not tested with Perl
Problem: Blob not tested with Perl. Solution: Add more test coverage. Fixes a crash. (Dominique Pelle, closes #4037)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user