summaryrefslogtreecommitdiffstats
path: root/indent/segfault.patch
diff options
context:
space:
mode:
Diffstat (limited to 'indent/segfault.patch')
-rw-r--r--indent/segfault.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/indent/segfault.patch b/indent/segfault.patch
new file mode 100644
index 000000000..e91922480
--- /dev/null
+++ b/indent/segfault.patch
@@ -0,0 +1,16 @@
+--- a/man/texinfo2man.c
++++ b/man/texinfo2man.c
+@@ -287,6 +287,13 @@
+ char buf[1024];
+ int line_no = 0;
+
++ if (argc != 3)
++ {
++ fprintf(stderr, "Usage: %s <man template> <info file>\n", argv[0]);
++ fprintf(stderr, " The man page will be written to stdout.\n");
++ return -1;
++ }
++
+ texinfoname = argv[2];
+
+ in = fopen (argv[2], "r");