Crash while downloading dives

Henrik Brautaset Aronsen subsurface at henrik.synth.no
Sun Dec 16 11:58:40 PST 2012


Dirk Hohndel wrote:
> Henrik Brautaset Aronsen<subsurface at henrik.synth.no>  writes:
>
>> It looks like the line number is slightly wrong for some reason.  This
>> is the line that crashes (I had a printf("xx\n"); just after it that
>> didn't execute):
>>
>> snprintf(nickname, 69, "%s (%08x)", dive->dc.model, dive->dc.deviceid);
>>
>> I've verified that both variables are set ("Suunto HelO2" and
>> "a7c8b7da"), so I don't really understand why it fails here.
>
> Oh how odd. The code clearly has a bug, but with those two short stings
> I really wonder why it triggers a crash on MacOS. Can you change that
> line to read
>
> snprintf(nickname, sizeof(nickname), "%s (%08x)", dive->dc.model, dive->dc.deviceid);
>
> and see if it still crashes?

Hi!  I was away this weekend and just got back.  The fix you and Lubomir 
pushed works great, thanks!

Henrik

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20121216/b76674db/attachment.html>


More information about the subsurface mailing list