<p>Harald Welte <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/13447">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo_escape_str_buf: Always copy, don't return input string pointer<br><br>osmo_escape_str_buf() used to have the somewhat odd semantics that<br>if no escaping was needed, it would return the original pointer without<br>making any copy to the output buffer.  While this seems like an elegant<br>optimization, it is a very strange behavior and it works differently<br>than all of our other *_buf() functions.  Let's unify the API and<br>turn osmo_escape_str_buf() into a strlcpy() if no escaping is needed.<br><br>Change-Id: I3a02bdb27008a73101c2db41ac04248960ed4064<br>---<br>M include/osmocom/core/utils.h<br>M src/utils.c<br>M tests/utils/utils_test.c<br>M tests/utils/utils_test.ok<br>4 files changed, 10 insertions(+), 31 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/47/13447/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/13447">change 13447</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13447"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I3a02bdb27008a73101c2db41ac04248960ed4064 </div>
<div style="display:none"> Gerrit-Change-Number: 13447 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>