diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2001-10-15 22:25:45 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2001-10-15 22:25:45 (GMT) |
commit | 4833f0f4df984e373b6500a7a707a63f36f2fc1d (patch) | |
tree | 2ec55aa3e2cec410e32a9e471b62b6310b38fcfa | |
parent | daca0493e175052042d30663c82c160b8f1d0f32 (diff) | |
download | tcl-4833f0f4df984e373b6500a7a707a63f36f2fc1d.zip tcl-4833f0f4df984e373b6500a7a707a63f36f2fc1d.tar.gz tcl-4833f0f4df984e373b6500a7a707a63f36f2fc1d.tar.bz2 |
Doh ... strncmp, not strcmp needed in last commit.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | generic/tclProc.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ 2001-10-15 Miguel Sofer <msofer@users.sourceforge.net> - * generic/tclProc.c: changing a memcmp to strcmp to avoid a memory + * generic/tclProc.c: changing a memcmp to strncmp to avoid a memory error detected by purify (thanks Jeff); modify style to agrre with the style guide. diff --git a/generic/tclProc.c b/generic/tclProc.c index d7e06e3..c20096e 100644 --- a/generic/tclProc.c +++ b/generic/tclProc.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclProc.c,v 1.30 2001/10/15 22:15:19 msofer Exp $ + * RCS: @(#) $Id: tclProc.c,v 1.31 2001/10/15 22:25:45 msofer Exp $ */ #include "tclInt.h" @@ -170,7 +170,7 @@ Tcl_ProcObjCmd(dummy, interp, objc, objv) procArgs++; } - if ((procArgs[0] == 'a') && (strcmp(procArgs, "args") == 0)) { + if ((procArgs[0] == 'a') && (strncmp(procArgs, "args", 4) == 0)) { procArgs +=4; while(*procArgs != '\0') { if (*procArgs != ' ') { |