From kde-commits Thu Dec 12 18:33:34 2002 From: Kevin Puetz Date: Thu, 12 Dec 2002 18:33:34 +0000 To: kde-commits Subject: Re: kdelibs/dcop X-MARC-Message: https://marc.info/?l=kde-commits&m=103971816416284 Lubos Lunak wrote: > CVS commit by lunakl: > > Call me pedantic. > > > M +1 -0 dcopserver_shutdown.c 1.8 > > > --- kdelibs/dcop/dcopserver_shutdown.c #1.7:1.8 > @@ -83,4 +83,5 @@ static void getDCOPFile(char *dcop_file, > home_dir = getenv("HOME"); > strncpy(dcop_file, home_dir, n); > + dcop_file[ n - 1 ] = '\0'; > n -= strlen(home_dir); why not just start changing these to strlcpy now that we have it?