diff src/ls-oct-ascii.h @ 5679:297b82335c7b

[project @ 2006-03-16 16:44:12 by jwe]
author jwe
date Thu, 16 Mar 2006 16:44:12 +0000
parents 4c8a2e4e0717
children a9ac02e9fda5
line wrap: on
line diff
--- a/src/ls-oct-ascii.h
+++ b/src/ls-oct-ascii.h
@@ -90,8 +90,8 @@
 	    buf << c;
 
 	  buf << OSSTREAM_ENDS;
-	  const char *tmp = OSSTREAM_C_STR (buf);
-	  int match = (strncmp (tmp, keyword, strlen (keyword)) == 0);
+	  std::string tmp = OSSTREAM_STR (buf);
+	  bool match = (tmp.compare (0, strlen (keyword), keyword) == 0);
 	  OSSTREAM_FREEZE (buf);
 
 	  if (match)