summaryrefslogtreecommitdiff
path: root/fileconverter.c
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2011-01-27 15:45:50 +0100
committerDidier Raboud <odyx@debian.org>2011-01-27 15:45:50 +0100
commitd1cf03383a481675a2458d6ffc95bca7f495eff8 (patch)
tree8031752b202ad5a1b26e6560361fc5a12be8b280 /fileconverter.c
parent1a03de334fd4e6aafb91b806ea35092a7774a8d7 (diff)
Imported Upstream version 4.0.6
Diffstat (limited to 'fileconverter.c')
-rw-r--r--fileconverter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fileconverter.c b/fileconverter.c
index 6751dbf..baee2a9 100644
--- a/fileconverter.c
+++ b/fileconverter.c
@@ -49,8 +49,10 @@ void set_fileconverter(const char *fc)
{
int i;
for (i = 0; fileconverters[i][0]; i++) {
- if (!strcmp(fc, fileconverters[i][0]))
+ if (!strcmp(fc, fileconverters[i][0])) {
strlcpy(fileconverter, fileconverters[i][1], PATH_MAX);
+ break;
+ }
}
if (!fileconverters[i][0])
strlcpy(fileconverter, fc, PATH_MAX);