aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Kroll III <henry@comptune.com>2010-12-08 01:05:50 -0800
committerHenry Kroll III <henry@comptune.com>2010-12-08 01:05:50 -0800
commitc6f5d819af91284959d02bc109dbdb0d9cbb0c15 (patch)
treef811a0d1c881bbb8da21874557cae67f4ea277e9
parentffb9fcc5a24e388776b383b1c0f1233dd1c1e677 (diff)
downloadtinycc-c6f5d819af91284959d02bc109dbdb0d9cbb0c15.tar.gz
tinycc-c6f5d819af91284959d02bc109dbdb0d9cbb0c15.tar.bz2
tcc: fix format string in error handler
-rw-r--r--tcc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tcc.c b/tcc.c
index 1a9f067..94e6336 100644
--- a/tcc.c
+++ b/tcc.c
@@ -241,10 +241,10 @@ static void exec_other_tcc(TCCState *s, int argc,
char *parent,*child_tcc;
int opt = atoi(optarg);
if (strlen(argv[0]) > 4000)
- error("-m32/64 unsafe path length");
+ error("-m%i unsafe path length", ARG);
switch (opt) {
case ARG + 1: /* oops we called ourselves */
- error("-m32/64 cross compiler not installed");
+ error("-m%i cross compiler not installed", ARG);
break;
case ARG:
{
@@ -262,8 +262,8 @@ static void exec_other_tcc(TCCState *s, int argc,
execvp(child_path, CAST argv);
sprintf(child_tcc,"tcc%s",tcc_fileextension(parent));
execvp(child_path, CAST argv);
- error("-m32/64 cross compiler not found");
- } else error("-m32/65 unsupported configuration");
+ error("-m%i cross compiler not found", ARG);
+ } else error("-m%i unsupported configuration", ARG);
}
case 96 ^ ARG : break;
case 96 ^ (ARG + 1): break;