X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Ftinfo%2Fhome_terminfo.c;fp=ncurses%2Ftinfo%2Fhome_terminfo.c;h=ad2f5f6e5bcdceee653a82595ada3aa726580e9a;hb=46722468f47c2b77b3987729b4bcf2321cccfd01;hp=69b8a96ffcff745a0ce855cf1a54b7869b63312d;hpb=c633e5103a29a38532cf1925257b91cea33fd090;p=ncurses.git diff --git a/ncurses/tinfo/home_terminfo.c b/ncurses/tinfo/home_terminfo.c index 69b8a96f..ad2f5f6e 100644 --- a/ncurses/tinfo/home_terminfo.c +++ b/ncurses/tinfo/home_terminfo.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998,2000 Free Software Foundation, Inc. * + * Copyright (c) 1998-2000,2002 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -37,13 +37,13 @@ #include #include -MODULE_ID("$Id: home_terminfo.c,v 1.3 2000/10/04 02:31:53 tom Exp $"); +MODULE_ID("$Id: home_terminfo.c,v 1.7 2002/09/07 20:04:51 tom Exp $") #define my_length (strlen(home) + sizeof(PRIVATE_INFO)) /* ncurses extension...fall back on user's private directory */ -char * +NCURSES_EXPORT(char *) _nc_home_terminfo(void) { char *home; @@ -55,7 +55,7 @@ _nc_home_terminfo(void) && my_length <= PATH_MAX) { temp = typeMalloc(char, my_length); if (temp == 0) - _nc_err_abort("Out of memory"); + _nc_err_abort(MSG_NO_MEMORY); (void) sprintf(temp, PRIVATE_INFO, home); } }