From 4ffd644a14fa40b758f8937b06844861009bfec1 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 17:18:18 +0000 Subject: Optimized out strcpys that copy empty strings (craq++) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2637 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/command_parse.cpp') 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]) -- cgit v1.3.1-10-gc9f91