Skip to content

Commit 94dc740

Browse files
authored
Update PluggableUSB.cpp
char* iSerialNum must finished with '\0'.
1 parent c6bac06 commit 94dc740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/avr/cores/arduino/PluggableUSB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void PluggableUSB_::getShortName(char *iSerialNum)
5656
for (node = rootNode; node; node = node->next) {
5757
iSerialNum += node->getShortName(iSerialNum);
5858
}
59-
*iSerialNum = 0;
59+
*iSerialNum = '\0';
6060
}
6161

6262
bool PluggableUSB_::setup(USBSetup& setup)

0 commit comments

Comments
 (0)