1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/japanese/FreeWnn-server/files/patch-bk
Jun Kuriyama b300811eaf Add dictionaries and some fixes.
PR:		ports/9625
Submitted by:	Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
1999-02-10 14:32:00 +00:00

22 lines
488 B
Plaintext

By KATAYAMA Yoshio <kate@pfu.co.jp>
--- Wnn/etc/pwd.c.ORG Tue Sep 22 13:29:26 1992
+++ Wnn/etc/pwd.c Mon Jan 25 13:14:27 1999
@@ -68,7 +68,7 @@
char *src, *encd;
{
int i, x,c;
- char xx[2];
+ char xx[3];
char *cr;
if(encd == NULL)encd = src;
@@ -76,6 +76,7 @@
x = time(NULL);
xx[0] = x & 0x3f;
xx[1] = (x & 0x3f00) >> 8;
+ xx[2] = '\0'; /* for MD5 (that requires terminator) */
for (i = 0; i < 2; i++) {
c = xx[i] + '.';
if (c > '9')