opnsense-ports/devel/omake/files/patch-src_libmojave-external_cutil_lm__terminfo.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

18 lines
688 B
C

$NetBSD: patch-am,v 1.1 2010/12/17 09:40:14 wiz Exp $
From upstream SVN.
--- src/libmojave-external/cutil/lm_terminfo.c.orig 2007-05-15 19:03:32.000000000 +0000
+++ src/libmojave-external/cutil/lm_terminfo.c
@@ -75,9 +75,9 @@ value caml_tgetstr(value id) {
/* Note that tigetstr will return either 0 or -1 on error. */
if(termdata == NULL || termdata == (char *)(-1)) {
- result = copy_string("");
+ result = caml_copy_string("");
} else {
- result = copy_string(termdata);
+ result = caml_copy_string(termdata);
/* apparently we're not supposed to free termdata here */
/* TEMP: I cannot find specs on this! */
//free(termdata);