Subj : Re: Codeguard found error in sprintf() To : borland.public.cpp.borlandcpp From : "Richard Hufford" Date : Fri Feb 27 2004 12:57 pm 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); > .