[EMAIL PROTECTED] (Derek Kwan) writes:
|> I have include a quick patch to the souce code.... I just changed the call
|> from error to fprintf (to stderr).
Here is a proper patch, also fixes the other place with the same bug.
2001-02-09 Andreas Schwab <[EMAIL PROTECTED]>
* src/m4.c (main): Fix improper uses of error (missing format
string).
--- src/m4.c
+++ src/m4.c 2001/02/09 13:49:15
@@ -445,7 +445,7 @@
case 'o':
if (!debug_set_output (optarg))
- error (0, errno, optarg);
+ error (0, errno, "%s", optarg);
break;
case 's':
@@ -575,7 +575,7 @@
fp = path_search (argv[optind], &filename);
if (fp == NULL)
{
- error (0, errno, argv[optind]);
+ error (0, errno, "%s", argv[optind]);
exit_status = EXIT_FAILURE;
continue;
}
--
Andreas Schwab "And now for something
SuSE Labs completely different."
[EMAIL PROTECTED]
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
_______________________________________________
Bug-m4 mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-m4