Date: Sat, 23 Nov 2024 18:17:53 GMT From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= <fernape@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: a4ad79ed1736 - main - cad/stepcode: Fix build in current Message-ID: <202411231817.4ANIHr9B022220@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=a4ad79ed17360718f04c4e958f2a57aa9dd08d73 commit a4ad79ed17360718f04c4e958f2a57aa9dd08d73 Author: Fernando ApesteguĂa <fernape@FreeBSD.org> AuthorDate: 2024-11-21 19:18:30 +0000 Commit: Fernando ApesteguĂa <fernape@FreeBSD.org> CommitDate: 2024-11-23 18:17:34 +0000 cad/stepcode: Fix build in current --- cad/stepcode/Makefile | 1 + cad/stepcode/files/patch-include_cllazyfile_judyS2Array.h | 11 +++++++++++ cad/stepcode/files/patch-include_cllazyfile_judySArray.h | 11 +++++++++++ 3 files changed, 23 insertions(+) diff --git a/cad/stepcode/Makefile b/cad/stepcode/Makefile index 32cb745a8431..d733583f4e61 100644 --- a/cad/stepcode/Makefile +++ b/cad/stepcode/Makefile @@ -1,6 +1,7 @@ PORTNAME= stepcode PORTVERSION= 0.8.2 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= cad MAINTAINER= fernape@FreeBSD.org diff --git a/cad/stepcode/files/patch-include_cllazyfile_judyS2Array.h b/cad/stepcode/files/patch-include_cllazyfile_judyS2Array.h new file mode 100644 index 000000000000..cb3437316917 --- /dev/null +++ b/cad/stepcode/files/patch-include_cllazyfile_judyS2Array.h @@ -0,0 +1,11 @@ +--- include/cllazyfile/judyS2Array.h.orig 2024-11-21 19:04:57 UTC ++++ include/cllazyfile/judyS2Array.h +@@ -51,7 +51,7 @@ class judyS2Array { + explicit judyS2Array( const judyS2Array< JudyValue > & other ): _maxKeyLen( other._maxKeyLen ), _success( other._success ) { + _judyarray = judy_clone( other._judyarray ); + _buff = new unsigned char[_maxKeyLen]; +- strncpy( _buff, other._buff, _maxKeyLen ); ++ strncpy( (char*)_buff, (char*)other._buff, _maxKeyLen ); + _buff[ _maxKeyLen ] = '\0'; //ensure that _buff is null-terminated, since strncpy won't necessarily do so + find( _buff ); //set _lastSlot + } diff --git a/cad/stepcode/files/patch-include_cllazyfile_judySArray.h b/cad/stepcode/files/patch-include_cllazyfile_judySArray.h new file mode 100644 index 000000000000..b943afbde19e --- /dev/null +++ b/cad/stepcode/files/patch-include_cllazyfile_judySArray.h @@ -0,0 +1,11 @@ +--- include/cllazyfile/judySArray.h.orig 2024-11-21 18:30:49 UTC ++++ include/cllazyfile/judySArray.h +@@ -39,7 +39,7 @@ class judySArray { + explicit judySArray( const judySArray< JudyValue > & other ): _maxKeyLen( other._maxKeyLen ), _success( other._success ) { + _judyarray = judy_clone( other._judyarray ); + _buff = new unsigned char[_maxKeyLen]; +- strncpy( _buff, other._buff, _maxKeyLen ); ++ strncpy( (char*)_buff, (char*)other._buff, _maxKeyLen ); + _buff[ _maxKeyLen ] = '\0'; //ensure that _buff is null-terminated, since strncpy won't necessarily do so + find( _buff ); //set _lastSlot + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411231817.4ANIHr9B022220>