Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From e8fd7ed864784608ffc0db2955271c8a24e9f8a8 Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Thu, 25 Mar 2021 01:26:35 +0000 >Subject: [PATCH] regexp.c: change format from "%d" to "%ld" for the output of > a difference of two pointers of type character Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- regexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regexp.c b/regexp.c index 316743e..9db173f 100644 --- a/regexp.c +++ b/regexp.c @@ -1086,12 +1086,12 @@ regdump(regexp * r) s = r->program + 1; while (op != END) { /* While that wasn't END last time... */ op = OP(s); - printf("%2d%s", s - r->program, regprop(s)); /* Where, what. */ + printf("%2ld%s", s - r->program, regprop(s)); /* Where, what. */ next = regnext(s); if (next == NULL) /* Next ptr. */ printf("(0)"); else - printf("(%d)", (s - r->program) + (next - s)); + printf("(%ld)", (s - r->program) + (next - s)); s += 3; if (op == ANYOF || op == ANYBUT || op == EXACTLY) { /* Literal string, where present. */ -- 2.30.2 -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.19-1 (SMP w/2 CPU threads) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) -- debconf information excluded -- Bjarni I. Gislason