diff options
author | joerg <joerg@pkgsrc.org> | 2008-09-10 18:48:01 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-09-10 18:48:01 +0000 |
commit | e47041a1548c7de82d63e132aa2950519e8c6f0b (patch) | |
tree | f7626484519d7670c4961f169c553dea69be1697 /devel/nbpatch | |
parent | 5bd840c3c46c8b21adb0873b7cc938301c246b70 (diff) | |
download | pkgsrc-e47041a1548c7de82d63e132aa2950519e8c6f0b.tar.gz |
Just replace d_namlen with strlen(d_name).
Diffstat (limited to 'devel/nbpatch')
-rw-r--r-- | devel/nbpatch/files/backupfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/nbpatch/files/backupfile.c b/devel/nbpatch/files/backupfile.c index 807f6677315..822fa2b343c 100644 --- a/devel/nbpatch/files/backupfile.c +++ b/devel/nbpatch/files/backupfile.c @@ -1,7 +1,7 @@ /* * $OpenBSD: backupfile.c,v 1.19 2006/03/11 19:41:30 otto Exp $ * $DragonFly: src/usr.bin/patch/backupfile.c,v 1.5 2008/08/11 00:05:06 joerg Exp $ - * $NetBSD: backupfile.c,v 1.1.1.1 2008/09/10 11:03:21 joerg Exp $ + * $NetBSD: backupfile.c,v 1.2 2008/09/10 18:48:01 joerg Exp $ */ /* @@ -116,7 +116,7 @@ max_backup_version(const char *file, const char *dir) file_name_length = strlen(file); while ((dp = readdir(dirp)) != NULL) { - if (dp->d_namlen <= file_name_length) + if (strlen(dp->d_name) <= file_name_length) continue; this_version = version_number(file, dp->d_name, file_name_length); |