Subj : Re: Codeguard found error in sprintf() To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Fri Feb 27 2004 03:05 pm I don't know of any way to do that. .. Ed > Richard Hufford wrote in message > news:403fa10f@newsgroups.borland.com... > > Is it possible to have Codeguard notice if buf is too small > and ignore whatever size r is? I can disable memory > access error in sprintf, but won't that also disable > notifying me that buf is too small? > > > > > char buf[100]; > > char *r = new char[8]; > > strcpy (r, "richard"); > > sprintf (buf, "%25s", r); > > .