From: Dirk Hohndel Date: Fri, 30 Sep 2011 01:01:58 +0000 (-0700) Subject: Fix uemis parser to work with base64 data that isn't a multiple of 3 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=529412aa379ead5beaa9e66c19fbc127d24b9ed4;p=ext%2Fsubsurface.git Fix uemis parser to work with base64 data that isn't a multiple of 3 I had forgotten the '=' sign as valid character in base64 code Signed-off-by: Dirk Hohndel --- diff --git a/uemis.c b/uemis.c index c390aae..980c182 100644 --- 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,"", - ">\\([a-zA-Z0-9+/]*\\)<", &found)) { + ">\\([a-zA-Z0-9+/=]*\\)<", &found)) { /* some error handling */ goto bail; }