Pass --with-included-slang to configure if you concerned about

that Bugtraq message.

Sun Feb 14 01:05:42 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* slang/sldisply.c (SLtt_get_terminfo): use g_snprintf instead of
sprintf

* slang/slsmg.c (SLsmg_printf): ditto

* slang/sltermin.c (SLtt_tigetent): ditto
This commit is contained in:
Norbert Warmuth 1999-02-14 00:41:23 +00:00
parent 86ede6c1ca
commit b993f8e8ed
6 changed files with 16 additions and 6 deletions

10
slang/ChangeLog Normal file
View File

@ -0,0 +1,10 @@
Sun Feb 14 01:05:42 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* sldisply.c (SLtt_get_terminfo): use g_snprintf instead of
sprintf
* slsmg.c (SLsmg_printf): ditto
* sltermin.c (SLtt_tigetent): ditto

View File

@ -25,7 +25,7 @@ SLANGOBJS = sldisply.o slerr.o slsmg.o slutty.o \
# Distribution variables
#
DISTSLANG = Makefile.in README $(SLANGSRCS) $(SLANGHDRS)
DISTSLANG = Makefile.in ChangeLog README $(SLANGSRCS) $(SLANGHDRS)
all: @LIBSLANG@

View File

@ -1781,7 +1781,7 @@ void SLtt_get_terminfo (void)
SLtt_set_term_vtxxx (&vt102);
return;
}
sprintf (err_buf, "Unknown terminal: %s\n\
g_snprintf (err_buf, sizeof (err_buf), "Unknown terminal: %s\n\
Check the TERM environment variable.\n\
Also make sure that the terminal is defined in the terminfo database.\n\
Alternatively, set the TERMCAP environment variable to the desired\n\

View File

@ -35,7 +35,7 @@ void SLang_doerror (char *error)
str = "Slang/Midnight Commander unknown error";
sprintf(err, "S-Lang Error: %s", str);
g_snprintf(err, sizeof (err), "S-Lang Error: %s", str);
if (SLang_Error_Routine == NULL)
{

View File

@ -189,7 +189,7 @@ void SLsmg_printf (char *fmt, ...)
va_list ap;
va_start(ap, fmt);
(void) vsprintf(p, fmt, ap);
(void) g_vsnprintf(p, sizeof (p), fmt, ap);
va_end(ap);
SLsmg_write_string (p);
@ -947,7 +947,7 @@ void SLsmg_vprintf (char *fmt, va_list ap)
{
char p[1000];
(void) vsprintf(p, fmt, ap);
(void) g_vsnprintf(p, sizeof (p), fmt, ap);
SLsmg_write_string (p);
}

View File

@ -269,7 +269,7 @@ char *SLtt_tigetent (char *term)
tidir = Terminfo_Dirs[i];
if (tidir != NULL)
{
sprintf (file, "%s/%c/%s", tidir, *term, term);
g_snprintf (file, sizeof (file), "%s/%c/%s", tidir, *term, term);
if (NULL != (fp = open_terminfo (file, ti))) break;
}
i++;