Browse code

Fix segfault if write to temporary file fails

git-svn: trunk@1220

Nigel Horne authored on 2004/12/27 23:17:14
Showing 1 changed files
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: binhex.c,v $
20
+ * Revision 1.12  2004/12/27 14:17:14  nigelhorne
21
+ * Fix segfault if write to temporary file fails
22
+ *
20 23
  * Revision 1.11  2004/12/17 12:03:38  nigelhorne
21 24
  * Tidy up for machines without MMAP
22 25
  *
... ...
@@ -48,7 +51,7 @@
48 48
  * First draft of binhex.c
49 49
  *
50 50
  */
51
-static	char	const	rcsid[] = "$Id: binhex.c,v 1.11 2004/12/17 12:03:38 nigelhorne Exp $";
51
+static	char	const	rcsid[] = "$Id: binhex.c,v 1.12 2004/12/27 14:17:14 nigelhorne Exp $";
52 52
 
53 53
 #include "clamav.h"
54 54
 
... ...
@@ -165,7 +168,7 @@ cli_binhex(const char *dir, int desc)
165 165
 		cli_dbgmsg("Binhex file decoded to %s\n", fileblobGetFilename(fb));
166 166
 		fileblobDestroy(fb);
167 167
 	} else
168
-		cli_errmsg("Couldn't decode binhex file to %s\n", fileblobGetFilename(fb));
168
+		cli_errmsg("Couldn't decode binhex file to %s\n", dir);
169 169
 	messageDestroy(m);
170 170
 
171 171
 	if(fb)