format patches
This commit is contained in:
parent
5af6d1418e
commit
f08ccc4575
|
@ -1,16 +1,20 @@
|
||||||
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=237630
|
|
||||||
|
|
||||||
From: Thorsten Alteholz <debian@alteholz.de>
|
From: Thorsten Alteholz <debian@alteholz.de>
|
||||||
|
Date: Mon, 16 May 2022 15:10:15 +0800
|
||||||
|
Subject: err-in-string
|
||||||
|
|
||||||
This is a small patch to avoid an endless loop. In case of an error
|
This is a small patch to avoid an endless loop. In case of an error
|
||||||
textwrap() adds <ERR> at the end of the string and returns with the
|
textwrap() adds <ERR> at the end of the string and returns with the
|
||||||
string that was built up to that error.
|
string that was built up to that error.
|
||||||
|
---
|
||||||
|
textwrap.3 | 3 +++
|
||||||
|
textwrap.c | 8 ++++++++
|
||||||
|
2 files changed, 11 insertions(+)
|
||||||
|
|
||||||
Index: libtextwrap-0.1/textwrap.3
|
diff --git a/textwrap.3 b/textwrap.3
|
||||||
===================================================================
|
index 4bac77b..67f1f84 100644
|
||||||
--- libtextwrap-0.1.orig/textwrap.3
|
--- a/textwrap.3
|
||||||
+++ libtextwrap-0.1/textwrap.3
|
+++ b/textwrap.3
|
||||||
@@ -78,6 +78,9 @@ proper number of space code (0x20) by \f
|
@@ -78,6 +78,9 @@ proper number of space code (0x20) by \fBtextwrap\fR.
|
||||||
.SH RETURN VALUE
|
.SH RETURN VALUE
|
||||||
\fBtextwrap()\fR returns the line-folded text.
|
\fBtextwrap()\fR returns the line-folded text.
|
||||||
You can free(3) the given value.
|
You can free(3) the given value.
|
||||||
|
@ -20,11 +24,11 @@ Index: libtextwrap-0.1/textwrap.3
|
||||||
.\" ********************************************************************
|
.\" ********************************************************************
|
||||||
.SH EXAMPLE
|
.SH EXAMPLE
|
||||||
.nf
|
.nf
|
||||||
Index: libtextwrap-0.1/textwrap.c
|
diff --git a/textwrap.c b/textwrap.c
|
||||||
===================================================================
|
index 5753ec9..5c14781 100644
|
||||||
--- libtextwrap-0.1.orig/textwrap.c
|
--- a/textwrap.c
|
||||||
+++ libtextwrap-0.1/textwrap.c
|
+++ b/textwrap.c
|
||||||
@@ -300,6 +300,14 @@ textwrap(const textwrap_t *prop, const c
|
@@ -300,6 +300,14 @@ textwrap(const textwrap_t *prop, const char *text)
|
||||||
|
|
||||||
now = p; /* current character */
|
now = p; /* current character */
|
||||||
ml = mblen(p, MB_CUR_MAX);
|
ml = mblen(p, MB_CUR_MAX);
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
Description: Fix a dependency bug in Makefile.am
|
From: Adrian Bunk <bunk@debian.org>
|
||||||
Old bug exposed by automake 1.16.
|
Date: Mon, 16 May 2022 15:10:15 +0800
|
||||||
Author: Adrian Bunk <bunk@debian.org>
|
Subject: Fix a dependency bug in Makefile.am
|
||||||
Bug-Debian: https://bugs.debian.org/905472
|
|
||||||
|
|
||||||
--- libtextwrap-0.1.orig/Makefile.am
|
Old bug exposed by automake 1.16.
|
||||||
+++ libtextwrap-0.1/Makefile.am
|
Bug-Debian: https://bugs.debian.org/905472
|
||||||
|
---
|
||||||
|
Makefile.am | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile.am b/Makefile.am
|
||||||
|
index 80acb10..bd7e5e8 100644
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
@@ -8,4 +8,4 @@ man_MANS = textwrap.3 dotextwrap.1
|
@@ -8,4 +8,4 @@ man_MANS = textwrap.3 dotextwrap.1
|
||||||
|
|
||||||
bin_PROGRAMS = dotextwrap
|
bin_PROGRAMS = dotextwrap
|
||||||
|
|
Loading…
Reference in New Issue