<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/18747">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">firmware/apps/rssi: enlarge text buffer in refresh_display()<br><br>This change fixes several warnings reported by GCC 10.1.0:<br><br>  apps/rssi/main.c:238:30: warning: 'sprintf' may write a terminating<br>                           nul past the end of the destination<br>  apps/rssi/main.c:238:4: note: 'sprintf' output between 10 and 17<br>                          bytes into a destination of size 16<br><br>  apps/rssi/main.c:413:26: warning: '.' directive writing 1 byte into<br>                           a region of size between 0 and 9<br>  apps/rssi/main.c:413:3: note: 'sprintf' output between 10 and 20<br>                          bytes into a destination of size 16<br><br>Change-Id: I7980727b78f7622d792d82170f73c90ac5770397<br>---<br>M src/target/firmware/apps/rssi/main.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/osmocom-bb refs/changes/47/18747/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/target/firmware/apps/rssi/main.c b/src/target/firmware/apps/rssi/main.c</span><br><span>index e137806..4b33ee3 100644</span><br><span>--- a/src/target/firmware/apps/rssi/main.c</span><br><span>+++ b/src/target/firmware/apps/rssi/main.c</span><br><span>@@ -170,7 +170,7 @@</span><br><span> </span><br><span> static void refresh_display(void)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-     char text[16];</span><br><span style="color: hsl(120, 100%, 40%);">+        char text[32];</span><br><span>       int bat = battery_info.battery_percent;</span><br><span> </span><br><span>  fb_clear();</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/18747">change 18747</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/osmocom-bb/+/18747"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7980727b78f7622d792d82170f73c90ac5770397 </div>
<div style="display:none"> Gerrit-Change-Number: 18747 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>