Skip to content
Snippets Groups Projects
Commit a4ad79ed authored by Fernando Apesteguía's avatar Fernando Apesteguía
Browse files

cad/stepcode: Fix build in current

parent a4b2dd46
No related branches found
No related tags found
No related merge requests found
PORTNAME= stepcode
PORTVERSION= 0.8.2
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= cad
MAINTAINER= fernape@FreeBSD.org
......
--- 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
}
--- 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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment