Fix an index bug and update HOMEPAGE and MASTERSITES.

From: Matthias Kilian <kili@outback.escape.de>
This commit is contained in:
naddy 2005-11-13 13:19:23 +00:00
parent c5695d9969
commit eba19c9b08
2 changed files with 16 additions and 4 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.9 2004/12/19 17:36:32 alek Exp $
# $OpenBSD: Makefile,v 1.10 2005/11/13 13:19:23 naddy Exp $
COMMENT= "minimal wm based on GNU screen"
DISTNAME= ratpoison-1.3.0
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
CATEGORIES= x11
HOMEPAGE= http://ratpoison.sourceforge.net/
HOMEPAGE= http://www.nongnu.org/ratpoison/
MAINTAINER= William Yodlowsky <bsd@openbsd.rutgers.edu>
@ -16,7 +16,7 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xext Xinerama c
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ratpoison/} \
MASTER_SITES= http://savannah.nongnu.org/download/ratpoison/ \
http://openbsd.rutgers.edu/
USE_X11= Yes

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_editor_c,v 1.1 2005/11/13 13:19:23 naddy Exp $
--- src/editor.c.orig Fri Feb 27 08:26:03 2004
+++ src/editor.c Wed Nov 9 19:50:46 2005
@@ -406,7 +406,7 @@ editor_insert (rp_input_line *line, char
line->buffer = xrealloc (line->buffer, line->size);
}
- for (i = line->length + nbytes; i > line->position; i--)
+ for (i = line->length + nbytes; i > line->position && i >= nbytes; i--)
line->buffer[i] = line->buffer[i - nbytes];
strncpy (&line->buffer[line->position], keysym_buf, nbytes);