diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-20 12:35:55 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-10-20 12:35:55 +0000 |
commit | 74de22b76500c4bf124bd4f215423e6b1fa03a1d (patch) | |
tree | 27b9cda1c45b3a1308dfacfe01f061b5ff2e9650 /regress/lib | |
parent | d7b7e109ac3bd413e8d2c6626d5bd64e576413e2 (diff) |
Make this work on 64 bit platforms by using strlen() instead of sizeof()...
worked by accident.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libc/dirname/dirname_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/lib/libc/dirname/dirname_test.c b/regress/lib/libc/dirname/dirname_test.c index 7d0b0e221f6..0dd95d6c308 100644 --- a/regress/lib/libc/dirname/dirname_test.c +++ b/regress/lib/libc/dirname/dirname_test.c @@ -69,7 +69,7 @@ main(void) /* Case 4 */ strlcpy(path, "/", sizeof(path)); /* reset path */ - for (i = 0; i <= MAXPATHLEN; i += sizeof(dir)) + for (i = 0; i <= MAXPATHLEN; i += strlen(dir)) strlcat(path, dir, sizeof(path)); strlcat(path, fname, sizeof(path)); str = dirname(path); |