mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Changed to string::size_type for calls to string::find()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@106 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -191,7 +191,7 @@ void CZNC::InitDirs(const string& sArgvPath) {
|
||||
getcwd(buf, PATH_MAX);
|
||||
|
||||
// If the bin was not ran from the current directory, we need to add that dir onto our cwd
|
||||
unsigned int uPos = sArgvPath.rfind('/');
|
||||
string::size_type uPos = sArgvPath.rfind('/');
|
||||
m_sCurPath = (uPos == string::npos) ? string(buf) : CUtils::ChangeDir(buf, sArgvPath.substr(0, uPos), "");
|
||||
|
||||
// Try to set the user's home dir, default to binpath on failure
|
||||
|
||||
Reference in New Issue
Block a user