mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
Fix segfault on amd64
PR: 118996 Submitted by KOIE Hidetaka
This commit is contained in:
parent
13966ac24e
commit
ec7d6ff18d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=204826
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= skkserv
|
||||
PORTVERSION= 9.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= japanese
|
||||
MASTER_SITES= ${MASTER_SITE_PORTS_JP}
|
||||
DISTNAME= skk${PORTVERSION}
|
||||
|
11
japanese/skkserv/files/patch-skkserv.c
Normal file
11
japanese/skkserv/files/patch-skkserv.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- skkserv/skkserv.c.orig 2008-01-01 20:00:27.000000000 +0100
|
||||
+++ skkserv/skkserv.c 2008-01-01 20:01:01.000000000 +0100
|
||||
@@ -476,7 +476,7 @@
|
||||
|
||||
if (FD_ISSET(initsock, &readfds)) {
|
||||
len = sizeof(from);
|
||||
- if ((clientsock[nclients ++] = accept(initsock, &from, &len)) < 0) {
|
||||
+ if ((clientsock[nclients ++] = accept(initsock, (struct sockaddr*)&from, &len)) < 0) {
|
||||
err("accept error; something wrong happened with the socket");
|
||||
}
|
||||
if (nclients >= MAXDTAB - 3 - debug * 2) {
|
19
japanese/skkserv/files/patch-skkserv.h
Normal file
19
japanese/skkserv/files/patch-skkserv.h
Normal file
@ -0,0 +1,19 @@
|
||||
--- skkserv/skkserv.h.orig 1997-01-20 20:16:36.000000000 +0100
|
||||
+++ skkserv/skkserv.h 2008-01-01 19:58:41.000000000 +0100
|
||||
@@ -37,6 +37,8 @@
|
||||
/* Necessary for SunOS 3.x and maybe other old systems */
|
||||
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_IOCTL_H
|
||||
@@ -44,6 +46,7 @@
|
||||
#endif
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
+#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
Loading…
Reference in New Issue
Block a user