mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-02 20:30:17 +01:00
[test/any2ppm] Handle filenames with multiple-dots.
Use strrchr() to find the extension, as strchr() is fooled too easily. As spotted by Carlos Garcia Campos.
This commit is contained in:
parent
651c6598c9
commit
49b9a21e0b
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ convert (char **argv, int fd)
|
|||
const struct converter *converter = converters;
|
||||
char *type;
|
||||
|
||||
type = strchr (argv[0], '.');
|
||||
type = strrchr (argv[0], '.');
|
||||
if (type == NULL)
|
||||
return "no file extension";
|
||||
type++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue