]> git.street.me.uk Git - andy/viking.git/commit - src/file_magic.h
SF Bugs#132: Fix to correctly open GPX files in Windows via double click.
authorRob Norris <rw_norris@hotmail.com>
Sat, 25 Jun 2016 13:02:45 +0000 (14:02 +0100)
committerRob Norris <rw_norris@hotmail.com>
Sat, 25 Jun 2016 13:12:20 +0000 (14:12 +0100)
commit5c1cf59f83648f2bd5fdf5af845b4f49fc667d29
tree997b1c365790edffab0021cb82d267f68cab7e33
parent8d90bf949b713a33d76e2d7259d07d14e82d1a0e
SF Bugs#132: Fix to correctly open GPX files in Windows via double click.

Previously in jpg.c there was no check for magic_load() result in Windows
 (and the path to the magic database file was not correct).
So somehow when opening a file the 'is a JPG' test would return true when it is a GPX file,
 thus leading to using the GPX file name as an image name.

Commonize the magic library processing so the correct location of the magic database is used for JPG tests,
 with better tracing of error conditions.
src/Makefile.am
src/download.c
src/file_magic.c [new file with mode: 0644]
src/file_magic.h [new file with mode: 0644]
src/jpg.c