pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/nbpatch/files Just replace d_namlen with strlen(...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c3f1f9127ffa
branches:  trunk
changeset: 546991:c3f1f9127ffa
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Sep 10 18:48:01 2008 +0000

description:
Just replace d_namlen with strlen(d_name).

diffstat:

 devel/nbpatch/files/backupfile.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r f8796a808c16 -r c3f1f9127ffa devel/nbpatch/files/backupfile.c
--- a/devel/nbpatch/files/backupfile.c  Wed Sep 10 18:47:43 2008 +0000
+++ b/devel/nbpatch/files/backupfile.c  Wed Sep 10 18:48:01 2008 +0000
@@ -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 @@
        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);



Home | Main Index | Thread Index | Old Index