SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,21 @@
Index: rocs/impl/mem.c
--- rocs/impl/mem.c.orig
+++ rocs/impl/mem.c
@@ -53,13 +53,13 @@ static void _mem_init( void ) {
static char __opStr[1024];
static const char* _mem_getLastOperation( void ) {
const char* op = "?";
- if( mt.type = MEMTYPE_ALLOC )
+ if( mt.type == MEMTYPE_ALLOC )
op = "alloc";
- else if( mt.type = MEMTYPE_FREE )
+ else if( mt.type == MEMTYPE_FREE )
op = "free";
- else if( mt.type = MEMTYPE_CHECK )
+ else if( mt.type == MEMTYPE_CHECK )
op = "check";
- else if( mt.type = MEMTYPE_REALLOC )
+ else if( mt.type == MEMTYPE_REALLOC )
op = "realloc";
sprintf( __opStr, ">>>>> memLastOp: op=%s p=0x%08X file=%s line=%d <<<<<", op, mt.p, mt.file, mt.line );
return __opStr;