diff --git a/deskutils/kdepim3/Makefile b/deskutils/kdepim3/Makefile index cbcddd3366e7..3048aa3553ba 100644 --- a/deskutils/kdepim3/Makefile +++ b/deskutils/kdepim3/Makefile @@ -7,6 +7,7 @@ PORTNAME= kdepim PORTVERSION= ${KDE_VERSION} +PORTREVISION= 1 CATEGORIES= deskutils kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src diff --git a/deskutils/kdepim3/files/patch-vcf-kfile_vcf.cpp b/deskutils/kdepim3/files/patch-vcf-kfile_vcf.cpp new file mode 100644 index 000000000000..e3860317514b --- /dev/null +++ b/deskutils/kdepim3/files/patch-vcf-kfile_vcf.cpp @@ -0,0 +1,24 @@ +--- kfile-plugins/vcf/kfile_vcf.cpp 2003-07-16 21:12:41.000000000 +0200 ++++ kfile-plugins/vcf/kfile_vcf.cpp 2003-12-16 15:38:20.000000000 +0100 +@@ -90,17 +90,17 @@ + while (!done) { + + // read a line +- file.readLine(linebuf, 4096); ++ file.readLine(linebuf, sizeof(linebuf)); + + // have we got something useful? + if (memcmp(linebuf, id_name, 3) == 0) { + // we have a name + myptr = linebuf + 3; +- strncpy(buf_name, myptr, 999); ++ strlcpy(buf_name, myptr, sizeof( buf_name )); + } else if (memcmp(linebuf, id_email, 15) == 0) { + // we have a name + myptr = linebuf + 15; +- strncpy(buf_email, myptr, 999); ++ strlcpy(buf_email, myptr, sizeof( buf_email )); + } + + // are we done yet? + diff --git a/deskutils/kdepim4/Makefile b/deskutils/kdepim4/Makefile index cbcddd3366e7..3048aa3553ba 100644 --- a/deskutils/kdepim4/Makefile +++ b/deskutils/kdepim4/Makefile @@ -7,6 +7,7 @@ PORTNAME= kdepim PORTVERSION= ${KDE_VERSION} +PORTREVISION= 1 CATEGORIES= deskutils kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src diff --git a/deskutils/kdepim4/files/patch-vcf-kfile_vcf.cpp b/deskutils/kdepim4/files/patch-vcf-kfile_vcf.cpp new file mode 100644 index 000000000000..e3860317514b --- /dev/null +++ b/deskutils/kdepim4/files/patch-vcf-kfile_vcf.cpp @@ -0,0 +1,24 @@ +--- kfile-plugins/vcf/kfile_vcf.cpp 2003-07-16 21:12:41.000000000 +0200 ++++ kfile-plugins/vcf/kfile_vcf.cpp 2003-12-16 15:38:20.000000000 +0100 +@@ -90,17 +90,17 @@ + while (!done) { + + // read a line +- file.readLine(linebuf, 4096); ++ file.readLine(linebuf, sizeof(linebuf)); + + // have we got something useful? + if (memcmp(linebuf, id_name, 3) == 0) { + // we have a name + myptr = linebuf + 3; +- strncpy(buf_name, myptr, 999); ++ strlcpy(buf_name, myptr, sizeof( buf_name )); + } else if (memcmp(linebuf, id_email, 15) == 0) { + // we have a name + myptr = linebuf + 15; +- strncpy(buf_email, myptr, 999); ++ strlcpy(buf_email, myptr, sizeof( buf_email )); + } + + // are we done yet? + diff --git a/deskutils/kdepim44/Makefile b/deskutils/kdepim44/Makefile index cbcddd3366e7..3048aa3553ba 100644 --- a/deskutils/kdepim44/Makefile +++ b/deskutils/kdepim44/Makefile @@ -7,6 +7,7 @@ PORTNAME= kdepim PORTVERSION= ${KDE_VERSION} +PORTREVISION= 1 CATEGORIES= deskutils kde MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src diff --git a/deskutils/kdepim44/files/patch-vcf-kfile_vcf.cpp b/deskutils/kdepim44/files/patch-vcf-kfile_vcf.cpp new file mode 100644 index 000000000000..e3860317514b --- /dev/null +++ b/deskutils/kdepim44/files/patch-vcf-kfile_vcf.cpp @@ -0,0 +1,24 @@ +--- kfile-plugins/vcf/kfile_vcf.cpp 2003-07-16 21:12:41.000000000 +0200 ++++ kfile-plugins/vcf/kfile_vcf.cpp 2003-12-16 15:38:20.000000000 +0100 +@@ -90,17 +90,17 @@ + while (!done) { + + // read a line +- file.readLine(linebuf, 4096); ++ file.readLine(linebuf, sizeof(linebuf)); + + // have we got something useful? + if (memcmp(linebuf, id_name, 3) == 0) { + // we have a name + myptr = linebuf + 3; +- strncpy(buf_name, myptr, 999); ++ strlcpy(buf_name, myptr, sizeof( buf_name )); + } else if (memcmp(linebuf, id_email, 15) == 0) { + // we have a name + myptr = linebuf + 15; +- strncpy(buf_email, myptr, 999); ++ strlcpy(buf_email, myptr, sizeof( buf_email )); + } + + // are we done yet? +