summaryrefslogtreecommitdiff
path: root/devel/nbpatch
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-09-10 18:48:01 +0000
committerjoerg <joerg@pkgsrc.org>2008-09-10 18:48:01 +0000
commit99696141dca742801a021cfa3b5877e5c0cc2807 (patch)
treef7626484519d7670c4961f169c553dea69be1697 /devel/nbpatch
parent9659e45405c7921f53dd72289ddfb4b189a58c0c (diff)
downloadpkgsrc-99696141dca742801a021cfa3b5877e5c0cc2807.tar.gz
Just replace d_namlen with strlen(d_name).
Diffstat (limited to 'devel/nbpatch')
-rw-r--r--devel/nbpatch/files/backupfile.c4
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);