Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit 3866d0b

Browse files
committed
snprintf => concat
1 parent ce2a7a5 commit 3866d0b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/AsyncEventSource.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ static String generateEventMessage(const char* message, const char* event, uint3
4646

4747
if (id) {
4848
str += T_id__;
49-
char buff[16];
50-
snprintf ( buff, 16, "%u", id );
51-
str += buff;
49+
str += id;
5250
str += (char)0xa; // '\n'
5351
}
5452

0 commit comments

Comments
 (0)