diff options
author | delphij <delphij@FreeBSD.org> | 2014-02-28 19:18:07 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-02-28 19:18:07 +0000 |
commit | 1034bfc077f138b51edf6a5eadcb8ee507386460 (patch) | |
tree | 7b2d708d03277cdd2560e9ce6572bdafc2e58bab /ncurses/tinfo/home_terminfo.c | |
parent | 084d7341e201b5153031223070580cfac88a038a (diff) | |
download | FreeBSD-src-1034bfc077f138b51edf6a5eadcb8ee507386460.zip FreeBSD-src-1034bfc077f138b51edf6a5eadcb8ee507386460.tar.gz |
Redo import of ncurses 5.9 (stripped).
Diffstat (limited to 'ncurses/tinfo/home_terminfo.c')
-rw-r--r-- | ncurses/tinfo/home_terminfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ncurses/tinfo/home_terminfo.c b/ncurses/tinfo/home_terminfo.c index 4521c4a..69d69f95 100644 --- a/ncurses/tinfo/home_terminfo.c +++ b/ncurses/tinfo/home_terminfo.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * + * Copyright (c) 1998-2008,2010 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,7 +37,7 @@ #include <curses.priv.h> #include <tic.h> -MODULE_ID("$Id: home_terminfo.c,v 1.11 2008/08/03 23:43:11 tom Exp $") +MODULE_ID("$Id: home_terminfo.c,v 1.12 2010/12/25 23:43:58 tom Exp $") /* ncurses extension...fall back on user's private directory */ @@ -53,7 +53,7 @@ _nc_home_terminfo(void) if (use_terminfo_vars()) { if (MyBuffer == 0) { if ((home = getenv("HOME")) != 0) { - unsigned want = (strlen(home) + sizeof(PRIVATE_INFO)); + size_t want = (strlen(home) + sizeof(PRIVATE_INFO)); MyBuffer = typeMalloc(char, want); if (MyBuffer == 0) _nc_err_abort(MSG_NO_MEMORY); |