<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/16746">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">usb: Use OSMO_STRLCPY where appropriate<br><br>Change-Id: I6b2a90fd8f4b042a1e38dbf8e99414a94a290375<br>---<br>M src/usb/osmo_libusb.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/46/16746/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/usb/osmo_libusb.c b/src/usb/osmo_libusb.c</span><br><span>index 5b012b8..b10f5be 100644</span><br><span>--- a/src/usb/osmo_libusb.c</span><br><span>+++ b/src/usb/osmo_libusb.c</span><br><span>@@ -276,7 +276,7 @@</span><br><span>                                 out[out_idx].vendor = dev_desc.idVendor;</span><br><span>                             out[out_idx].product = dev_desc.idProduct;</span><br><span>                           out[out_idx].addr = addr;</span><br><span style="color: hsl(0, 100%, 40%);">-                               strncpy(out[out_idx].path, path, sizeof(out[out_idx].path)-1);</span><br><span style="color: hsl(120, 100%, 40%);">+                                OSMO_STRLCPY_ARRAY(out[out_idx].path, path);</span><br><span>                                 out[out_idx].path[sizeof(out[out_idx].path)-1] = '\0';</span><br><span>                               out[out_idx].configuration = conf_desc->bConfigurationValue;</span><br><span>                              out[out_idx].interface = if_desc->bInterfaceNumber;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/16746">change 16746</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/+/16746"/><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: I6b2a90fd8f4b042a1e38dbf8e99414a94a290375 </div>
<div style="display:none"> Gerrit-Change-Number: 16746 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>