37 lines
887 B
Diff
37 lines
887 B
Diff
From 74599ddaf3dfb11277401eb6279dd32371f54e18 Mon Sep 17 00:00:00 2001
|
|
From: ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>
|
|
Date: Thu, 6 Oct 2016 16:32:46 +0000
|
|
Subject: [PATCH] Fix pcretest callout display bug
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1665 2f5784b3-3f2a-0410-8824-cb99058d5e15
|
|
|
|
Petr Písař: Ported to 8.39.
|
|
|
|
diff --git a/pcretest.c b/pcretest.c
|
|
index 5748c55..5b73a91 100644
|
|
--- a/pcretest.c
|
|
+++ b/pcretest.c
|
|
@@ -1982,6 +1982,7 @@ return(result);
|
|
static int pchar(pcre_uint32 c, FILE *f)
|
|
{
|
|
int n = 0;
|
|
+char tempbuffer[16];
|
|
if (PRINTOK(c))
|
|
{
|
|
if (f != NULL) fprintf(f, "%c", c);
|
|
@@ -2003,6 +2004,8 @@ if (c < 0x100)
|
|
}
|
|
|
|
if (f != NULL) n = fprintf(f, "\\x{%02x}", c);
|
|
+ else n = sprintf(tempbuffer, "\\x{%02x}", c);
|
|
+
|
|
return n >= 0 ? n : 0;
|
|
}
|
|
|
|
--
|
|
2.7.4
|
|
|