<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I&#39;m reading the function, and unsure what&#39;s going on there, perhaps I&#39;m missing something:</div>name_len = strlen(loc-&gt;name) - keylen;<br><div>new_name = GF_MALLOC(name_len + 1, gf_common_mt_char);</div><div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">snprintf(new_name, name_len + 1, &quot;%s&quot;, loc-&gt;name);</div></div><div><br></div><div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">How exactly is there enough space to snprintf loc-&gt;name into new_name?</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Y.</div><br></div></div>