~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix leak of 'fname' introduced by the rewrite of write_random_seed in
[sgt/putty]
/
cmdgen.c
diff --git
a/cmdgen.c
b/cmdgen.c
index
33662c3
..
69c0177
100644
(file)
--- a/
cmdgen.c
+++ b/
cmdgen.c
@@
-102,6
+102,16
@@
void modalfatalbox(char *p, ...)
cleanup_exit(1);
}
+void nonfatal(char *p, ...)
+{
+ va_list ap;
+ fprintf(stderr, "ERROR: ");
+ va_start(ap, p);
+ vfprintf(stderr, p, ap);
+ va_end(ap);
+ fputc('\n', stderr);
+}
+
/*
* Stubs to let everything else link sensibly.
*/