1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- tools/rlehdr.c.orig 1992-04-30 23:12:10.000000000 +0900
+++ tools/rlehdr.c 2012-10-16 01:10:34.000000000 +0900
@@ -32,6 +32,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include "rle.h"
#include "../patchlevel.h"
@@ -65,7 +66,7 @@
* [None]
*/
-void
+int
main( argc, argv )
int argc;
char **argv;
@@ -289,7 +290,7 @@
{
if ( (cp = index( the_comment, '\n' )) )
printf( ", %s=%.*s", *comment_names,
- cp - the_comment - 1, the_comment );
+ *comment_names,cp - the_comment - 1, the_comment );
else
printf( ", %s=%s", *comment_names, the_comment );
break;
|