cad/stepcode: Fix build in current

This commit is contained in:
Fernando Apesteguía 2024-11-21 20:18:30 +01:00
parent a4b2dd4648
commit a4ad79ed17
3 changed files with 23 additions and 0 deletions

View file

@ -1,6 +1,7 @@
PORTNAME= stepcode PORTNAME= stepcode
PORTVERSION= 0.8.2 PORTVERSION= 0.8.2
DISTVERSIONPREFIX= v DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= cad CATEGORIES= cad
MAINTAINER= fernape@FreeBSD.org MAINTAINER= fernape@FreeBSD.org

View file

@ -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
}

View file

@ -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
}