1 |
/* Show files' passive translators. |
/* Show files' passive translators. |
2 |
|
|
3 |
Copyright (C) 1995,96,97,98,99,2001 Free Software Foundation, Inc. |
Copyright (C) 1995,96,97,98,99,2001,02 Free Software Foundation, Inc. |
4 |
Written by Miles Bader <miles@gnu.org> |
Written by Miles Bader <miles@gnu.org> |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
67 |
else |
else |
68 |
{ |
{ |
69 |
char buf[1024], *trans = buf; |
char buf[1024], *trans = buf; |
70 |
int trans_len = sizeof (buf); |
size_t trans_len = sizeof (buf); |
71 |
error_t err = file_get_translator (node, &trans, &trans_len); |
error_t err = file_get_translator (node, &trans, &trans_len); |
72 |
|
|
73 |
switch (err) |
switch (err) |
79 |
if (!silent) |
if (!silent) |
80 |
{ |
{ |
81 |
if (print_prefix) |
if (print_prefix) |
82 |
printf ("%s: %.*s\n", name, trans_len, trans); |
printf ("%s: %.*s\n", name, (int) trans_len, trans); |
83 |
else |
else |
84 |
printf ("%.*s\n", trans_len, trans); |
printf ("%.*s\n", (int) trans_len, trans); |
85 |
} |
} |
86 |
|
|
87 |
if (trans != buf) |
if (trans != buf) |