From 918a290574399a88456bbc70d7064c04ab8f6819 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 6 Jan 2009 21:39:03 +0000 Subject: [PATCH] throw an error if more than one filename is specified --- src/font2swf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/font2swf.c b/src/font2swf.c index be8134b..3eee844 100644 --- a/src/font2swf.c +++ b/src/font2swf.c @@ -80,6 +80,10 @@ void args_callback_usage(char *name) } int args_callback_command(char*name,char*val) { + if(filename) { + fprintf(stderr, "Please specify only one font\n"); + exit(1); + } filename = name; return 0; } -- 1.7.10.4