summaryrefslogtreecommitdiffstats
path: root/src/osc/OSCClientReceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osc/OSCClientReceiver.cpp')
-rw-r--r--src/osc/OSCClientReceiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osc/OSCClientReceiver.cpp b/src/osc/OSCClientReceiver.cpp
index 8717af24..7cba4c40 100644
--- a/src/osc/OSCClientReceiver.cpp
+++ b/src/osc/OSCClientReceiver.cpp
@@ -60,7 +60,7 @@ OSCClientReceiver::start(bool dump_osc)
// Attempt preferred port
if (_listen_port != 0) {
char port_str[8];
- snprintf(port_str, 8, "%d", _listen_port);
+ snprintf(port_str, sizeof(port_str), "%d", _listen_port);
_st = lo_server_thread_new(port_str, lo_error_cb);
}