31 lines
758 B
Text
31 lines
758 B
Text
$NetBSD: patch-ao,v 1.1 2008/07/21 05:35:37 dholland Exp $
|
|
|
|
--- lib/msgcat.c.orig 2005-08-18 08:49:24.000000000 -0400
|
|
+++ lib/msgcat.c 2008-07-21 01:22:41.000000000 -0400
|
|
@@ -60,6 +60,8 @@ up-to-date. Many thanks.
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
|
|
#ifdef MIPS
|
|
#include <unistd.h>
|
|
@@ -86,8 +88,6 @@ char *MCAppPath = NULL;
|
|
static nl_catd loadCat();
|
|
static nl_catd loadSet();
|
|
|
|
-extern char *malloc(), *getenv();
|
|
-
|
|
nl_catd catopen( name, type)
|
|
char *name;
|
|
int type;
|
|
@@ -283,7 +283,7 @@ nl_catd catd;
|
|
for (i = 0; i < cat->numSets; ++i) {
|
|
set = cat->sets + i;
|
|
if (!set->invalid) {
|
|
- free(set->data);
|
|
+ free(set->data.str);
|
|
free(set->u.msgs);
|
|
}
|
|
}
|