History

tcc: fix format string in error handler

Henry Kroll III committed 15 years ago

Commit c6f5d811 parent ffb9fcc1 file · +4 −4Browse files

Unified · Split

tcc.c+4−4
@@ -241,10 +241,10 @@ static void exec_other_tcc(TCCState *s, int argc, · 240 unmodified lines
241241 char *parent,*child_tcc;
242242 int opt = atoi(optarg);
243243 if (strlen(argv[0]) > 4000)
244− error("-m32/64 unsafe path length");
244+ error("-m%i unsafe path length", ARG);
245245 switch (opt) {
246246 case ARG + 1: /* oops we called ourselves */
247− error("-m32/64 cross compiler not installed");
247+ error("-m%i cross compiler not installed", ARG);
248248 break;
249249 case ARG:
250250 {
@@ -262,8 +262,8 @@ static void exec_other_tcc(TCCState *s, int argc, · 11 unmodified lines
262262 execvp(child_path, CAST argv);
263263 sprintf(child_tcc,"tcc%s",tcc_fileextension(parent));
264264 execvp(child_path, CAST argv);
265− error("-m32/64 cross compiler not found");
266− } else error("-m32/65 unsupported configuration");
265+ error("-m%i cross compiler not found", ARG);
266+ } else error("-m%i unsupported configuration", ARG);
267267 }
268268 case 96 ^ ARG : break;
269269 case 96 ^ (ARG + 1): break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t