From 2679b3a51aed129e1dff31dae69dc3a716e80824 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 20 Apr 2021 11:07:22 -0400 Subject: [PATCH] fix use of %d when %u is wanted --- src/zm_fifo_stream.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zm_fifo_stream.cpp b/src/zm_fifo_stream.cpp index d88cff484..3035ad6d0 100644 --- a/src/zm_fifo_stream.cpp +++ b/src/zm_fifo_stream.cpp @@ -106,18 +106,18 @@ void FifoStream::setStreamStart(int monitor_id, const char * format) { std::shared_ptr monitor = Monitor::Load(monitor_id, false, Monitor::QUERY); if ( !strcmp(format, "reference") ) { - snprintf(diag_path, sizeof(diag_path), "%s/diagpipe-r-%d.jpg", + snprintf(diag_path, sizeof(diag_path), "%s/diagpipe-r-%u.jpg", staticConfig.PATH_SOCKS.c_str(), monitor->Id()); stream_type = MJPEG; } else if ( !strcmp(format, "delta") ) { - snprintf(diag_path, sizeof(diag_path), "%s/diagpipe-d-%d.jpg", + snprintf(diag_path, sizeof(diag_path), "%s/diagpipe-d-%u.jpg", staticConfig.PATH_SOCKS.c_str(), monitor->Id()); stream_type = MJPEG; } else { if ( strcmp(format, "raw") ) { Warning("Unknown or unspecified format. Defaulting to raw"); } - snprintf(diag_path, sizeof(diag_path), "%s/dbgpipe-%d.log", + snprintf(diag_path, sizeof(diag_path), "%s/dbgpipe-%u.log", staticConfig.PATH_SOCKS.c_str(), monitor->Id()); stream_type = RAW; }