blob: 3b05b2304d97155ead8eb26489cc1f79e5b8e65c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$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);
}
}
|