From 3f310ca54df96a53f6804ca9e968594fb5599546 Mon Sep 17 00:00:00 2001 From: Rene Zeldenthuis Date: Tue, 20 Sep 2022 15:27:34 +0200 Subject: [PATCH] Removed not rquired cast --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 566e8b2..9524c87 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -145,7 +145,7 @@ void handle_snapshot() // Make a copy in memory to prevent interaction with RTSP cam.run(); auto fb_len = cam.getSize(); - auto fb = (uint8_t *)memcpy(new uint8_t[cam.getSize()], cam.getfb(), fb_len); + auto fb = memcpy(new uint8_t[cam.getSize()], cam.getfb(), fb_len); web_server.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate"); web_server.setContentLength(fb_len); web_server.send(200, "image/jpeg", "");