summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--dicod/dicod.h2
m---------grecs0
-rw-r--r--include/dico/markup.h2
-rw-r--r--lib/utf8.c2
4 files changed, 3 insertions, 3 deletions
diff --git a/dicod/dicod.h b/dicod/dicod.h
index 13303d7..c857096 100644
--- a/dicod/dicod.h
+++ b/dicod/dicod.h
@@ -269,7 +269,7 @@ void register_lev(void);
void register_regex(void);
/* dbtext.c */
-struct dico_udb_def text_udb_def;
+extern struct dico_udb_def text_udb_def;
extern dico_udb_t user_db;
/* auth.c */
diff --git a/grecs b/grecs
-Subproject eb66a000db9b2726411c8c0f132c0278bd18c1a
+Subproject 893d875a4065acb757fef55876c391b1dd07004
diff --git a/include/dico/markup.h b/include/dico/markup.h
index 17b0c82..b8f0317 100644
--- a/include/dico/markup.h
+++ b/include/dico/markup.h
@@ -20,7 +20,7 @@
#include <dico/types.h>
extern const char *dico_markup_type;
-dico_list_t dico_markup_list;
+extern dico_list_t dico_markup_list;
const char *dico_markup_lookup(const char *name);
int dico_markup_register(const char *name);
diff --git a/lib/utf8.c b/lib/utf8.c
index a25c613..3653d59 100644
--- a/lib/utf8.c
+++ b/lib/utf8.c
@@ -1545,7 +1545,7 @@ utf8_iter0(struct utf8_iterator *itr)
return 1;
}
n = utf8_char_width(itr->curptr);
- if (n > itr->length) {
+ if (n == 0 || n > itr->length) {
itr->end = 1;
itr->err = 1;
return 1;

Return to:

Send suggestions and report system problems to the System administrator.