From def0c7aaa0b79d0251758e6645c3edd03107b367 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 6 Jun 2004 14:53:21 +0200 Subject: Modified 'libsi' to require callers to state the buffer sizes when getting strings in order to avoid buffer overflows --- nit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nit.c') diff --git a/nit.c b/nit.c index cf3b674f..c515c240 100644 --- a/nit.c +++ b/nit.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: nit.c 1.7 2004/05/22 15:46:21 kls Exp $ + * $Id: nit.c 1.8 2004/06/06 14:24:49 kls Exp $ */ #include "nit.h" @@ -71,7 +71,7 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length switch (d->getDescriptorTag()) { case SI::NetworkNameDescriptorTag: { SI::NetworkNameDescriptor *nnd = (SI::NetworkNameDescriptor *)d; - nnd->name.getText(nits[numNits].name); + nnd->name.getText(nits[numNits].name, MAXNETWORKNAME); } break; default: ; -- cgit v1.2.3