aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Kroll III <henry@comptune.com>2010-12-08 00:52:33 -0800
committerHenry Kroll III <henry@comptune.com>2010-12-08 00:52:33 -0800
commitffb9fcc5a24e388776b383b1c0f1233dd1c1e677 (patch)
treecc02a955a4099ec2eb2e52014839d5e1bb1fd885
parentb3be007afa46a9bb099b261c14c1dc42cc5fff99 (diff)
downloadtinycc-ffb9fcc5a24e388776b383b1c0f1233dd1c1e677.tar.gz
tinycc-ffb9fcc5a24e388776b383b1c0f1233dd1c1e677.tar.bz2
tcc: oops, error handler does not accept format strings
-rw-r--r--tcc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tcc.c b/tcc.c
index f564462..1a9f067 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("-m%s unsafe path length", ARG);
+ error("-m32/64 unsafe path length");
switch (opt) {
case ARG + 1: /* oops we called ourselves */
- error("-m%s cross compiler not installed", ARG);
+ error("-m32/64 cross compiler not installed");
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("-m%s cross compiler not found", ARG);
- } else error("-m%s unsupported configuration", ARG);
+ error("-m32/64 cross compiler not found");
+ } else error("-m32/65 unsupported configuration");
}
case 96 ^ ARG : break;
case 96 ^ (ARG + 1): break;