$NetBSD: patch-aq,v 1.1.1.1 2000/08/25 16:15:53 jlam Exp $ --- src/cmd/syntax.c.orig Thu Jan 2 13:33:29 1997 +++ src/cmd/syntax.c @@ -7,18 +7,24 @@ // // ^HISTORY: // 03/25/92 Brad Appleton Created +// +// 08/16/00 Johnny Lam +// - Updated to ISO C++ standard //-^^--------------------------------------------------------------------- -#include -#include -#include -#include +#include +#include +#include +#include #include #include "syntax.h" #include "quoted.h" +using namespace cmdline; +using namespace std; + //------------------------------------------------------------------ copy_token //------------------- @@ -53,7 +59,7 @@ copy_token(const char * & dest, const SyntaxFSM::token_t & src) { char * tok = new char[src.len + 1] ; - ::strncpy(tok, src.start, src.len); + strncpy(tok, src.start, src.len); tok[src.len] = '\0'; dest = tok; }