From 2e5abf804466a5e7238e3b99ffb3ac35955f045c Mon Sep 17 00:00:00 2001 From: jca Date: Tue, 10 Jan 2023 13:24:10 +0000 Subject: [PATCH] Don't mix up \0 and NULL, fatal with clang 15 --- graphics/vid/Makefile | 2 +- graphics/vid/patches/patch-vid_c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/graphics/vid/Makefile b/graphics/vid/Makefile index a50f5908870..0bebd46c7eb 100644 --- a/graphics/vid/Makefile +++ b/graphics/vid/Makefile @@ -1,7 +1,7 @@ COMMENT= get images from USB cameras using the OV511(+) chipsets DISTNAME= vid-1.0.1 -REVISION= 5 +REVISION= 6 CATEGORIES= graphics HOMEPAGE= http://ovtvid-bsd.sourceforge.net/ diff --git a/graphics/vid/patches/patch-vid_c b/graphics/vid/patches/patch-vid_c index ee92fd476c6..0a6e2685390 100644 --- a/graphics/vid/patches/patch-vid_c +++ b/graphics/vid/patches/patch-vid_c @@ -1,5 +1,6 @@ ---- vid.c.orig Mon May 8 06:59:03 2000 -+++ vid.c Tue Apr 26 15:50:06 2016 +Index: vid.c +--- vid.c.orig ++++ vid.c @@ -37,7 +37,7 @@ #include @@ -254,7 +255,7 @@ + /* there is a dot */ + plen = strlen(p); + snprintf(isocdev, sizeof(isocdev), "%s", devname); -+ isocdev[slen - plen] = NULL; ++ isocdev[slen - plen] = '\0'; + snprintf(isocdev, sizeof(isocdev), "%s.01", isocdev); + } +