From 03b51e9cb691848f9906e7dc8dca4894c60e5bcc Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 15 Dec 2005 18:47:58 +0000 Subject: Tidied up some string stuff git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2488 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd_io.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inspircd_io.cpp') diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 2faa7e0ab..b1e90bfd0 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -916,9 +916,9 @@ int ServerConfig::ReadConf(std::stringstream *config, const char* tag, const cha else { key+=strlen(var); - while (key[0] !='"') + while (*key !='"') { - if (!strlen(key)) + if (!*key) { /* missing quote */ strcpy(result,""); -- cgit v1.2.3