acecad.c (446279168e030fd0ed68e2bba336bef8bb3da352) | acecad.c (a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) 2001-2005 Edouard TISSERANT <edouard.tisserant@wanadoo.fr> 4 * Copyright (c) 2004-2005 Stephane VOLTZ <svoltz@numericable.fr> 5 * 6 * USB Acecad "Acecad Flair" tablet support 7 * 8 * Changelog: --- 141 unchanged lines hidden (view full) --- 150 err = -ENOMEM; 151 goto fail2; 152 } 153 154 acecad->intf = intf; 155 acecad->input = input_dev; 156 157 if (dev->manufacturer) | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) 2001-2005 Edouard TISSERANT <edouard.tisserant@wanadoo.fr> 4 * Copyright (c) 2004-2005 Stephane VOLTZ <svoltz@numericable.fr> 5 * 6 * USB Acecad "Acecad Flair" tablet support 7 * 8 * Changelog: --- 141 unchanged lines hidden (view full) --- 150 err = -ENOMEM; 151 goto fail2; 152 } 153 154 acecad->intf = intf; 155 acecad->input = input_dev; 156 157 if (dev->manufacturer) |
158 strlcpy(acecad->name, dev->manufacturer, sizeof(acecad->name)); | 158 strscpy(acecad->name, dev->manufacturer, sizeof(acecad->name)); |
159 160 if (dev->product) { 161 if (dev->manufacturer) 162 strlcat(acecad->name, " ", sizeof(acecad->name)); 163 strlcat(acecad->name, dev->product, sizeof(acecad->name)); 164 } 165 166 usb_make_path(dev, acecad->phys, sizeof(acecad->phys)); --- 91 unchanged lines hidden --- | 159 160 if (dev->product) { 161 if (dev->manufacturer) 162 strlcat(acecad->name, " ", sizeof(acecad->name)); 163 strlcat(acecad->name, dev->product, sizeof(acecad->name)); 164 } 165 166 usb_make_path(dev, acecad->phys, sizeof(acecad->phys)); --- 91 unchanged lines hidden --- |