Check-in Number:
|
4258 | |
Date: |
2001-Aug-01 14:03:12 (local)
2001-Aug-01 12:03:12 (UTC) |
User: | simons |
Branch: | callback-semantic-rewrite |
Comment: |
Use memcmp() instead of strcmp() because we can't rely on trailing zero bytes. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/xds/regression-tests/xds-encode.c 1.5.2.1 -> 1.5.2.2
--- xds-encode.c 2001/08/01 11:27:20 1.5.2.1
+++ xds-encode.c 2001/08/01 12:03:12 1.5.2.2
@@ -103,7 +103,7 @@
printf("xds_encode() failed!\n");
return 1;
}
- if (strcmp(xds->buffer, "Hallo Hallo Hallo Hallo Hallo ") != 0)
+ if (memcmp(xds->buffer, "Hallo Hallo Hallo Hallo Hallo ", 30) != 0)
{
printf("xds_encode() did not yield the expected result.\n");
return 1;
|
|