diff options
author | delphij <delphij@FreeBSD.org> | 2014-03-02 08:58:21 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-03-02 08:58:21 +0000 |
commit | 814c70500ada44e6fcd1d7bb0fb34b288ec5a85d (patch) | |
tree | a2372d7ccc967890376ec8bcddc202aba009ba79 /contrib/ncurses/panel/panel.c | |
parent | e27a461d5d783b02dfeef266e5c61eb7234ff691 (diff) | |
parent | 7dbeede8ea0ed51949a0b6098fa7c110cfbfae42 (diff) | |
download | FreeBSD-src-814c70500ada44e6fcd1d7bb0fb34b288ec5a85d.zip FreeBSD-src-814c70500ada44e6fcd1d7bb0fb34b288ec5a85d.tar.gz |
MFV r262639: ncurses 5.9 20140222 snapshot.
Requested by: bapt
Diffstat (limited to 'contrib/ncurses/panel/panel.c')
-rw-r--r-- | contrib/ncurses/panel/panel.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/ncurses/panel/panel.c b/contrib/ncurses/panel/panel.c index 96cbbab..97bebca 100644 --- a/contrib/ncurses/panel/panel.c +++ b/contrib/ncurses/panel/panel.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. * + * Copyright (c) 1998-2010,2012 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 * @@ -36,7 +36,7 @@ /* panel.c -- implementation of panels library, some core routines */ #include "panel.priv.h" -MODULE_ID("$Id: panel.c,v 1.25 2010/01/23 21:22:16 tom Exp $") +MODULE_ID("$Id: panel.c,v 1.26 2012/02/23 10:02:15 tom Exp $") /*+------------------------------------------------------------------------- _nc_retrace_panel (pan) @@ -61,9 +61,9 @@ _nc_my_visbuf(const void *ptr) char temp[32]; if (ptr != 0) - sprintf(temp, "ptr:%p", ptr); + _nc_SPRINTF(temp, _nc_SLIMIT(sizeof(temp)) "ptr:%p", ptr); else - strcpy(temp, "<null>"); + _nc_STRCPY(temp, "<null>", sizeof(temp)); return _nc_visbuf(temp); } #endif @@ -95,7 +95,7 @@ _nc_dStack(const char *fmt, int num, const PANEL * pan) GetPanelHook(pan); - sprintf(s80, fmt, num, pan); + _nc_SPRINTF(s80, _nc_SLIMIT(sizeof(s80)) fmt, num, pan); _tracef("%s b=%s t=%s", s80, (_nc_bottom_panel) ? USER_PTR(_nc_bottom_panel->user) : "--", (_nc_top_panel) ? USER_PTR(_nc_top_panel->user) : "--"); @@ -143,7 +143,7 @@ _nc_Touchline(const PANEL * pan, int start, int count) { char s80[80]; - sprintf(s80, "Touchline s=%d c=%d", start, count); + _nc_SPRINTF(s80, _nc_SLIMIT(sizeof(s80)) "Touchline s=%d c=%d", start, count); dPanel(s80, pan); touchline(pan->win, start, count); } |