<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 10 June 2016 at 10:19, Linus Torvalds <span dir="ltr"><<a href="mailto:torvalds@linux-foundation.org" target="_blank">torvalds@linux-foundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, I think I found it.<br>
<br>
The dive planner does<br>
<br>
    displayed_dive.dc.model = model;<br>
<br>
where "model" is a just a pointer to the static string "planned dive".<br>
Although it can be "manually added dive" too for that case.<br>
<br>
That assignment should just do "strdup()" on the passed-in string.<br>
<br>
A patch something like the attached fixes it here.  But maybe you're<br>
seeing a different issue, so please double-check..<br>
<span class="HOEnZb"></span></blockquote><div><br></div><div>Your patch works for me.  Thanks for the working out the issue and fixing it.<br><br></div><div>Rick <br></div></div></div></div>