<p>Neels Hofmeyr <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/13575">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">add OSMO_IMSI_BUF_SIZE<br><br>Various places in our code base figure out how many chars they need to safely<br>store an IMSI. An IMSI can have a checksum digit, which is not reflected by<br>GSM23003_IMSI_MAX_DIGITS. And we usually need a terminating \0.<br><br>Instead of having a magic +2 repeated every so often, rather define<br>OSMO_IMSI_BUF_SIZE to contain both checksum digit and nul char, and have the<br>explanatory comment with it here in libosmocore.<br><br>Change-Id: Id11ada4c96b79f7f0ad58185ab7dbf24622fb770<br>---<br>M include/osmocom/gsm/gsup.h<br>M include/osmocom/gsm/protocol/gsm_23_003.h<br>2 files changed, 4 insertions(+), 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/75/13575/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/13575">change 13575</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/13575"/><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: Id11ada4c96b79f7f0ad58185ab7dbf24622fb770 </div>
<div style="display:none"> Gerrit-Change-Number: 13575 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>