input_db.cpp:507:23: warning: ', socket' directive writing 8 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
507 | sprintf(query, "%s, socket%d='%d'", query, s, socket[s]);
| ^~~~~~~~
input_db.cpp:507:20: note: directive argument in the range...