summaryrefslogtreecommitdiff
path: root/lib/String.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/String.cc')
-rw-r--r--lib/String.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/String.cc b/lib/String.cc
index 084831c..08af9ab 100644
--- a/lib/String.cc
+++ b/lib/String.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: String.cc,v 1.36 2004-11-27 21:46:04 pixel Exp $ */
+/* $Id: String.cc,v 1.37 2005-01-05 19:37:05 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -344,6 +344,8 @@ bool String::operator!=(const String & s) const {
}
bool String::operator==(const String & s) const {
+ if (siz != s.siz)
+ return false;
return (strcmp(str, s.str) == 0);
}