about summary refs log tree commit diff stats
path: root/about.c
diff options
context:
space:
mode:
authorStevan Andjelkovic <stevan.andjelkovic@strath.ac.uk>2012-01-02 17:08:40 +0100
committerStevan Andjelkovic <stevan.andjelkovic@strath.ac.uk>2012-01-02 17:08:40 +0100
commit5b1812e85743e196c281d70483ef646aa53ef489 (patch)
tree553c31e090e784ce7fccc0395350ea348124bd3a /about.c
parentaaa662ab618b91db438999fcbed5abade18e72c3 (diff)
downloadxombrero-5b1812e85743e196c281d70483ef646aa53ef489.tar.gz
Fix two segfaults
Found and fixed by Nils Schneider <nils schneider at gmail dot com>

ok marco@
Diffstat (limited to 'about.c')
-rw-r--r--about.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/about.c b/about.c
index 77fcde3..0157517 100644
--- a/about.c
+++ b/about.c
@@ -620,7 +620,7 @@ remove_favorite(struct tab *t, int index)
 	}
 
 	if (fwrite(new_favs, strlen(new_favs), 1, f) != 1)
-		show_oops(t, "%s: can't fwrite"); /* shut gcc up */
+		show_oops(t, "%s: can't fwrite", __func__);
 	fclose(f);
 
 clean: