File magicpoint-1.13a-warnings.patch of Package mgp
---
draw.c | 2 +-
tfont.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- a/draw.c
+++ b/draw.c
@@ -2846,7 +2846,7 @@ draw_onechar_x(state, code, x, y, size,
char *seed;
char *registry;
- if (code >= 0xa0 && ((!argregistry || !argregistry[0]) && mgp_charset))
+ if (code >= 0xa0 && ((!argregistry || !argregistry[0]) && mgp_charset[0]))
registry = mgp_charset;
else
registry = argregistry;
--- a/tfont.c
+++ b/tfont.c
@@ -171,7 +171,7 @@ tfc_get(code, size, force, registry, cha
if (charset16)
tfc = tfc_lookup(code, size, tf_mcurname, 0);
else {
- if (code >= 0xa0 && ((!registry || !registry[0]) && mgp_charset)){
+ if (code >= 0xa0 && ((!registry || !registry[0]) && mgp_charset[0])){
regid = get_regid(mgp_charset);
} else
regid = get_regid(registry);
@@ -595,7 +595,7 @@ CharToUnicode(code, registry)
if (registry)
tempregid = get_regid(registry) -1;
else {
- if (mgp_charset)
+ if (mgp_charset[0])
tempregid = get_regid(mgp_charset)-1;
}
if (tempregid >= 0) {