OSSP CVS Repository

ossp - Difference in ossp-pkg/xds/regression-tests/xdr-string.c versions 1.2 and 1.2.2.1
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/xds/regression-tests/xdr-string.c 1.2 -> 1.2.2.1

--- xdr-string.c 2001/07/20 09:22:26     1.2
+++ xdr-string.c 2001/08/01 12:02:40     1.2.2.1
@@ -96,7 +96,7 @@
         printf("The size of the decoded message is wrong: %d.\n", new_msg_size);
         return 1;
         }
-    if (strncmp(msg, new_msg, new_msg_size) != 0)
+    if (memcmp(msg, new_msg, new_msg_size) != 0)
         {
         printf("The decoded string is not correct.\n");
         return 1;

CVSTrac 2.0.1