]> git.pld-linux.org Git - packages/allegro.git/blame - allegro-man-prefix.patch
- new URLs, updated to 4.4.3.1
[packages/allegro.git] / allegro-man-prefix.patch
CommitLineData
44783c01
JB
1--- allegro-4.4.2/docs/src/makedoc/makeman.c.orig 2005-09-24 04:30:04.000000000 +0200
2+++ allegro-4.4.2/docs/src/makedoc/makeman.c 2013-03-31 14:34:45.839923935 +0200
3@@ -21,6 +21,7 @@
4 #include <stdio.h>
5 #include <string.h>
6 #include <stdlib.h>
7+#include <limits.h>
8 #include <assert.h>
9
10 #include "makeman.h"
11@@ -52,7 +53,7 @@
12 */
13 int write_man(char *filename)
14 {
15- char buf[256], buf2[256];
16+ char buf[PATH_MAX], buf2[PATH_MAX];
17 char *xref[256];
18 int xrefs = 0;
19 LINE *line = head;
20@@ -98,9 +99,7 @@
21
22 if (p) {
23 strcpy(buf, filename);
24- strcpy(get_filename(buf), p);
25- strcat(buf, ".");
26- strcat(buf, get_extension(filename));
27+ sprintf(get_filename(buf), "allegro-%s.%s", p, get_extension(filename));
28
29 /*printf("writing %s\n", buf);*/
30 f = fopen(buf, "w");
31@@ -163,16 +162,14 @@
32
33 if (p) {
34 strcpy(buf2, filename);
35- strcpy(get_filename(buf2), p);
36- strcat(buf2, ".");
37- strcat(buf2, get_extension(filename));
38+ sprintf(get_filename(buf2), "allegro-%s.%s", p, get_extension(filename));
39
40 /*printf("writing %s\n", buf2);*/
41 f2 = fopen(buf2, "w");
42 if (!f2)
43 return 1;
44
45- fprintf(f2, ".so man%s/%s\n", get_extension(filename), get_filename(buf));
a2b303ef 46+ fprintf(f2, ".so man%s/%s\n", get_extension(filename), get_filename(buf));
44783c01
JB
47 fclose(f2);
48 }
49
This page took 0.08261 seconds and 4 git commands to generate.