]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix uemis parser to work with base64 data that isn't a multiple of 3
authorDirk Hohndel <dirk@hohndel.org>
Fri, 30 Sep 2011 01:01:58 +0000 (18:01 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Fri, 30 Sep 2011 01:01:58 +0000 (18:01 -0700)
I had forgotten the '=' sign as valid character in base64 code

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
uemis.c

diff --git a/uemis.c b/uemis.c
index c390aae3b74635fa67466db2094030d4a99ce8bd..980c1827c86847cd6d5ba85253b515a33fef63cf 100644 (file)
--- a/uemis.c
+++ b/uemis.c
@@ -245,7 +245,7 @@ parse_uemis_file(char *divelogfilename) {
        dive->maxdepth.mm = pressure_to_depth(atoi(found));
 
        if (! matchit(divelogfile,"<val key=\"file_content\">",
-                       ">\\([a-zA-Z0-9+/]*\\)<", &found)) {
+                       ">\\([a-zA-Z0-9+/=]*\\)<", &found)) {
                /* some error handling */
                goto bail;
        }