pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/focal Use d_namlen as boundary for d_name, the pr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b523670e866
branches:  trunk
changeset: 505969:5b523670e866
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jan 09 22:14:32 2006 +0000

description:
Use d_namlen as boundary for d_name, the printf still doesn't make much
sense, but who cares?

diffstat:

 lang/focal/distinfo         |   3 ++-
 lang/focal/patches/patch-ab |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 31bfe686e952 -r 5b523670e866 lang/focal/distinfo
--- a/lang/focal/distinfo       Mon Jan 09 22:04:38 2006 +0000
+++ b/lang/focal/distinfo       Mon Jan 09 22:14:32 2006 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 09:03:06 agc Exp $
+$NetBSD: distinfo,v 1.3 2006/01/09 22:14:32 joerg Exp $
 
 SHA1 (focal.tar.gz) = 704d1411365085fb47ff25c1a77ae1f8e7fa601e
 RMD160 (focal.tar.gz) = 6b06cc08b2761035c315ae13b80d64a5e7a6004b
 Size (focal.tar.gz) = 12561 bytes
 SHA1 (patch-aa) = f37f7271b0a7fe508bee1bf1630229096efb21d0
+SHA1 (patch-ab) = f42b9f219bfee5a0deaae5d030989a6bc4ae2e77
diff -r 31bfe686e952 -r 5b523670e866 lang/focal/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/focal/patches/patch-ab       Mon Jan 09 22:14:32 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2006/01/09 22:14:32 joerg Exp $
+
+--- focal2.c.orig      2006-01-09 22:06:20.000000000 +0000
++++ focal2.c
+@@ -138,7 +138,7 @@ void library()
+                           ||  strcmp(de->d_name, ".") == 0
+                           ||  strcmp(de->d_name, "..") == 0)
+                               continue;
+-                      printf("%.*s\n", de->d_reclen, de->d_name);
++                      printf("%.*s\n", de->d_namlen, de->d_name);
+               }
+               closedir(dp);
+ #else



Home | Main Index | Thread Index | Old Index