mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -04:00
cad/stepcode: Fix build in current
This commit is contained in:
parent
a4b2dd4648
commit
a4ad79ed17
3 changed files with 23 additions and 0 deletions
|
@ -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
|
||||||
|
|
11
cad/stepcode/files/patch-include_cllazyfile_judyS2Array.h
Normal file
11
cad/stepcode/files/patch-include_cllazyfile_judyS2Array.h
Normal 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
|
||||||
|
}
|
11
cad/stepcode/files/patch-include_cllazyfile_judySArray.h
Normal file
11
cad/stepcode/files/patch-include_cllazyfile_judySArray.h
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue