[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [3040] avoid double nulls at the end of strings( causi
From: |
Alexandru IANCU |
Subject: |
[myserver-commit] [3040] avoid double nulls at the end of strings( causing incorrect strings handling: e.g. |
Date: |
Mon, 30 Mar 2009 19:04:13 +0000 |
Revision: 3040
http://svn.sv.gnu.org/viewvc/?view=rev&root=myserver&revision=3040
Author: andu
Date: 2009-03-30 19:04:13 +0000 (Mon, 30 Mar 2009)
Log Message:
-----------
avoid double nulls at the end of strings(causing incorrect strings handling:
e.g. append will do nothing)
Modified Paths:
--------------
trunk/myserver/src/base/find_data/find_data.cpp
Modified: trunk/myserver/src/base/find_data/find_data.cpp
===================================================================
--- trunk/myserver/src/base/find_data/find_data.cpp 2009-03-29 20:34:36 UTC
(rev 3039)
+++ trunk/myserver/src/base/find_data/find_data.cpp 2009-03-30 19:04:13 UTC
(rev 3040)
@@ -84,7 +84,7 @@
DirName.assign(filename);
if(DirName[DirName.length() - 1] == '/')
- DirName[DirName.length() - 1] = '\0';
+ DirName.erase(DirName.length() - 1);
dh = opendir(DirName.c_str());
if(dh == NULL)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [3040] avoid double nulls at the end of strings( causing incorrect strings handling: e.g.,
Alexandru IANCU <=