Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libintl correct size to malloc.



details:   https://anonhg.NetBSD.org/src/rev/a94bcd88f2c7
branches:  trunk
changeset: 580516:a94bcd88f2c7
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Apr 27 09:51:52 2005 +0000

description:
correct size to malloc.

diffstat:

 lib/libintl/gettext.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2aeb43676fe1 -r a94bcd88f2c7 lib/libintl/gettext.c
--- a/lib/libintl/gettext.c     Wed Apr 27 09:50:26 2005 +0000
+++ b/lib/libintl/gettext.c     Wed Apr 27 09:51:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gettext.c,v 1.20 2004/09/23 21:35:27 tshiozak Exp $    */
+/*     $NetBSD: gettext.c,v 1.21 2005/04/27 09:51:52 yamt Exp $        */
 
 /*-
  * Copyright (c) 2000, 2001 Citrus Project,
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: gettext.c,v 1.20 2004/09/23 21:35:27 tshiozak Exp $");
+__RCSID("$NetBSD: gettext.c,v 1.21 2005/04/27 09:51:52 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/stat.h>
@@ -439,7 +439,7 @@
                return -1;
 
        /* get sysdep segments */
-       l = sizeof(struct mosysdepsegs_h *) * mohandle->mo.mo_sysdep_nsegs;
+       l = sizeof(struct mosysdepsegs_h) * mohandle->mo.mo_sysdep_nsegs;
        mohandle->mo.mo_sysdep_segs = (struct mosysdepsegs_h *)malloc(l);
        if (!mohandle->mo.mo_sysdep_segs)
                return -1;



Home | Main Index | Thread Index | Old Index