summaryrefslogtreecommitdiff
path: root/fribidi_create_char_types.c
diff options
context:
space:
mode:
authorbehdad <behdad>2002-01-03 15:31:24 +0000
committerbehdad <behdad>2002-01-03 15:31:24 +0000
commit707dd98f6e1fb3cb28b61e9547d878ec989b6f8d (patch)
tree25a5298f2b3d68e15fdb789c6c1cf7fb1cb02dbb /fribidi_create_char_types.c
parent52ac73796959aae40315b0958622b94d6cddab62 (diff)
Final (hopefuly) revision for 0.10.0 release
Diffstat (limited to 'fribidi_create_char_types.c')
-rw-r--r--fribidi_create_char_types.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fribidi_create_char_types.c b/fribidi_create_char_types.c
index 7bc9a00..b427197 100644
--- a/fribidi_create_char_types.c
+++ b/fribidi_create_char_types.c
@@ -220,10 +220,9 @@ main (int argc, char **argv)
max_depth = atoi (argv[1]);
if (!max_depth)
err ("invalid depth");
- if (max_depth < 2)
- max_depth = 2;
- if (max_depth > 9)
- max_depth = 9;
+ if (max_depth < 2 || max_depth > 9)
+ err2 ("invalid max_depth `%s', max_depth should be between 2 and 9",
+ argv[1]);
sprintf (file, "fribidi_tab_char_type_%d.i", max_depth);
init_table ();
read_unicode_data ();