pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/idutils fix a bogus sizeof (from uwe)
details: https://anonhg.NetBSD.org/pkgsrc/rev/3b5f124cfbcd
branches: trunk
changeset: 518759:3b5f124cfbcd
user: christos <christos%pkgsrc.org@localhost>
date: Sun Sep 17 01:25:18 2006 +0000
description:
fix a bogus sizeof (from uwe)
diffstat:
devel/idutils/Makefile | 3 ++-
devel/idutils/distinfo | 4 ++--
devel/idutils/patches/patch-aj | 21 ++++++++++++---------
3 files changed, 16 insertions(+), 12 deletions(-)
diffs (93 lines):
diff -r f7aca4b33aa7 -r 3b5f124cfbcd devel/idutils/Makefile
--- a/devel/idutils/Makefile Sun Sep 17 00:11:52 2006 +0000
+++ b/devel/idutils/Makefile Sun Sep 17 01:25:18 2006 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2006/08/06 23:10:30 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2006/09/17 01:25:18 christos Exp $
DISTNAME= idutils-4.2
+PKREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=idutils/}
diff -r f7aca4b33aa7 -r 3b5f124cfbcd devel/idutils/distinfo
--- a/devel/idutils/distinfo Sun Sep 17 00:11:52 2006 +0000
+++ b/devel/idutils/distinfo Sun Sep 17 01:25:18 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2006/08/06 23:10:30 wiz Exp $
+$NetBSD: distinfo,v 1.4 2006/09/17 01:25:18 christos Exp $
SHA1 (idutils-4.2.tar.gz) = 306f6e296768d494d771777647c04c8ceed66c1f
RMD160 (idutils-4.2.tar.gz) = cddc6ac3d26f8a836a4d8c5d7111b4439095abe8
@@ -9,5 +9,5 @@
SHA1 (patch-ad) = 05f6be0337f599736627d5bf372529e36ca22246
SHA1 (patch-ae) = b0a11f8172bede23e4f22f5ace819117f8f6a26d
SHA1 (patch-ai) = ee67a03e074820db342ffa6ec26c1440641b702e
-SHA1 (patch-aj) = e5dc6feb7895e868a742d66e9eb05c0f74c81c3e
+SHA1 (patch-aj) = fba2812551631733c5faea8d2d0468ff2ea3d734
SHA1 (patch-ak) = 91a781f4908b34ab172268e74ae77e93fd0e2ab4
diff -r f7aca4b33aa7 -r 3b5f124cfbcd devel/idutils/patches/patch-aj
--- a/devel/idutils/patches/patch-aj Sun Sep 17 00:11:52 2006 +0000
+++ b/devel/idutils/patches/patch-aj Sun Sep 17 01:25:18 2006 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aj,v 1.2 2006/08/06 23:10:30 wiz Exp $
+$NetBSD: patch-aj,v 1.3 2006/09/17 01:25:18 christos Exp $
---- src/lid.c.orig 2006-07-22 02:43:25.000000000 +0000
-+++ src/lid.c
+--- src/lid.c.orig 2006-07-21 22:43:25.000000000 -0400
++++ src/lid.c 2006-09-16 21:23:15.000000000 -0400
@@ -31,7 +31,6 @@
#include <dirname.h>
#include <unistd.h>
@@ -10,7 +10,7 @@
#include <regex.h>
#include <xalloc.h>
#include <pathmax.h>
-@@ -538,10 +537,11 @@ report_filenames (char const *name, stru
+@@ -538,10 +537,11 @@
void
report_grep (char const *name, struct file_link **flinkv)
{
@@ -24,9 +24,12 @@
if (key_style == ks_pattern)
{
-@@ -575,6 +575,15 @@ report_grep (char const *name, struct fi
+@@ -573,8 +573,17 @@
+ continue;
+ }
- while (fgets (line + 1, sizeof (line) - 1, source_FILE))
+- while (fgets (line + 1, sizeof (line) - 1, source_FILE))
++ while (fgets (line + 1, line_len - 1, source_FILE))
{
+ size_t len;
+ while ((len = strlen(line)) == line_len - 1 &&
@@ -40,7 +43,7 @@
line_number++;
if (pattern)
{
-@@ -589,6 +598,7 @@ report_grep (char const *name, struct fi
+@@ -589,6 +598,7 @@
}
fclose (source_FILE);
}
@@ -48,7 +51,7 @@
}
static char **
-@@ -800,7 +810,7 @@ search_flinkv (struct file_link **flinkv
+@@ -800,7 +810,7 @@
{
char pattern[BUFSIZ];
unsigned int count;
@@ -57,7 +60,7 @@
char *eol;
if (fgets (pattern, sizeof (pattern), stdin) == 0)
-@@ -1368,7 +1378,7 @@ word_match (char const *name_0, char con
+@@ -1368,7 +1378,7 @@
continue;
}
/* march down both strings as long as we match */
Home |
Main Index |
Thread Index |
Old Index