Skip to content

Commit 0b6068e

Browse files
clang-format fix
1 parent 811f608 commit 0b6068e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Adafruit_GFX.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,8 @@ void Adafruit_GFX_Button::initButtonUL(Adafruit_GFX *gfx, int16_t x1,
16611661
_textsize_y = textsize_y;
16621662
_gfx = gfx;
16631663
strncpy(_label, label, 9);
1664-
_label[9] = 0; // strncpy does not place a null at the end. When 'label' is 9 characters, _label is not terminated.
1664+
_label[9] = 0; // strncpy does not place a null at the end.
1665+
// When 'label' is >9 characters, _label is not terminated.
16651666
}
16661667

16671668
/**************************************************************************/

0 commit comments

Comments
 (0)