freebsd-ports/devel/smv/files/patch-string.c
Pav Lucistnik 2ea5de4d68 Add The SMV (Symbolic Model Verifier), a tool for
checking finite state systems against specifications
the temporal logic CTL (Computational Tree Logic).

PR:		ports/59429
Submitted by:	Marc van Woerkom <marc.vanwoerkom@fernuni-hagen.de>
2003-12-13 01:22:09 +00:00

10 lines
321 B
C

--- string.c
+++ string.c
@@ -35,7 +35,7 @@
string_rec a,*res;
a.text = x;
if(res = (string_ptr)find_hash(string_hash,&a))return(res);
- a.text = (char *)strcpy((char *)malloc(strlen(x)+1),x);
+ a.text = (char *)strcpy((char *)smv_malloc(strlen(x)+1),x);
return((string_ptr)insert_hash(string_hash,&a));
}