| Summary: | dynamite-0.1 - error: too few arguments to function `fprintf' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | azalio <elfarda> |
| Component: | Current packages | Assignee: | Gentoo PDA project <pda> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| URL: | http://linuxshop.ru/forum/viewtopic.php?t=10526 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
azalio
2004-07-05 05:20:42 UTC
The sigsegv patch seems to cause this so I fixed it (fprintf should have been printf):
diff -Naur dynamite-0.1/src/dynamite.c dynamite-0.1b/src/dynamite.c
--- dynamite-0.1/src/dynamite.c 2003-08-22 01:55:42.000000000 -0700
+++ dynamite-0.1b/src/dynamite.c 2004-07-06 11:49:22.682336952 -0700
@@ -1,6 +1,7 @@
/* $Id: dynamite.c,v 1.1.1.1 2003/08/22 08:55:42 twogood Exp $ */
#include "libdynamite.h"
#include <stdio.h>
+#include <stdlib.h>
#define FCLOSE(file) if (file) { fclose(file); file = NULL; }
@@ -25,6 +26,11 @@
int result = -1;
Cookie cookie;
+ if (argc < 3) {
+ printf("Missing filename: dynamite <source> <destination>\n");
+ return 1;
+ }
+
cookie.input_file = fopen(argv[1], "r");
cookie.output_file = fopen(argv[2], "w");
thanks for your report! i'm not even sure how that mistake crept into the bug, its so embarassing :( |