From 0c3f25f8cca29bf2fdaabc788d7398e5a8d4a917 Mon Sep 17 00:00:00 2001 From: didg Date: Mon, 17 Sep 2007 12:45:25 +0000 Subject: [PATCH] use the right number for num charset and max charset, from Hat --- include/atalk/unicode.h | 2 +- libatalk/unicode/charcnv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/atalk/unicode.h b/include/atalk/unicode.h index 3b93ad1c..c00e6e83 100644 --- a/include/atalk/unicode.h +++ b/include/atalk/unicode.h @@ -62,7 +62,7 @@ typedef struct { /* this defines the charset types used in samba */ typedef enum {CH_UCS2=0, CH_UTF8=1, CH_MAC=2, CH_UNIX=3, CH_UTF8_MAC=4} charset_t; -#define NUM_CHARSETS 6 +#define NUM_CHARSETS 5 /* * for each charset we have a function that pulls from that charset to diff --git a/libatalk/unicode/charcnv.c b/libatalk/unicode/charcnv.c index 7619b721..23e624e5 100644 --- a/libatalk/unicode/charcnv.c +++ b/libatalk/unicode/charcnv.c @@ -66,7 +66,7 @@ */ -#define MAX_CHARSETS 10 +#define MAX_CHARSETS 20 #define CHECK_FLAGS(a,b) (((a)!=NULL) ? (*(a) & (b)) : 0 ) -- 2.39.2