<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15779">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tdef: Return correct snprintf value for osmo_tdef_range_str_buf()<br><br>len provides extra information in the case the buffer was too small,<br>because it tells the caller "the number of characters (excluding the<br>terminating null byte) which would have been written to the final<br>string if enough space had been available" (man<br>snprintf).<br><br>Change-Id: Icafe559e19a92e2ae72fdd0dd2d9a394b1eda878<br>---<br>M src/tdef.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/79/15779/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tdef.c b/src/tdef.c</span><br><span>index 94d987f..7a709b4 100644</span><br><span>--- a/src/tdef.c</span><br><span>+++ b/src/tdef.c</span><br><span>@@ -275,7 +275,7 @@</span><br><span>       if (ret < 0)</span><br><span>              return ret;</span><br><span>  OSMO_SNPRINTF_RET(ret, rem, offset, len);</span><br><span style="color: hsl(0, 100%, 40%);">-       return ret;</span><br><span style="color: hsl(120, 100%, 40%);">+   return len;</span><br><span> }</span><br><span> </span><br><span> /*! Using osmo_tdef for osmo_fsm_inst: find a given state's osmo_tdef_state_timeout entry.</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15779">change 15779</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/c/libosmocore/+/15779"/><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-Change-Id: Icafe559e19a92e2ae72fdd0dd2d9a394b1eda878 </div>
<div style="display:none"> Gerrit-Change-Number: 15779 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>