diff options
| author | 2005-12-22 17:18:18 +0000 | |
|---|---|---|
| committer | 2005-12-22 17:18:18 +0000 | |
| commit | 4ffd644a14fa40b758f8937b06844861009bfec1 (patch) | |
| tree | 53f79a6d5efa581098363f6631d6f7170061bb93 /src/command_parse.cpp | |
| parent | Fixed encryption being set on a connection that has only just begun! (diff) | |
Optimized out strcpys that copy empty strings (craq++)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2637 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
| -rw-r--r-- | src/command_parse.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 1f17e4735..ff25ec878 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -114,12 +114,12 @@ int CommandParser::LoopCall(command_t* fn, char **parameters, int pcnt, userrec char moo[MAXBUF]; for (int i = 0; i <32; i++) - strcpy(blog[i],""); + *blog[i] = 0; for (int i = 0; i <32; i++) - strcpy(blog2[i],""); + *blog2[i] = 0; - strcpy(moo,""); + *moo = 0; for (int i = 0; i <10; i++) { if (!parameters[i]) @@ -143,7 +143,7 @@ int CommandParser::LoopCall(command_t* fn, char **parameters, int pcnt, userrec { return 0; } - strcpy(plist,""); + *plist = 0; for (int i = start; i <= end; i++) { if (parameters[i]) |
