diff options
author | tagoh <tagoh> | 2006-05-25 07:41:09 +0000 |
---|---|---|
committer | tagoh <tagoh> | 2006-05-25 07:41:09 +0000 |
commit | e891e6fa98eeff0740e1d4e4134ff79d57fdd4af (patch) | |
tree | 4692180cd59dd6816b261b7355d91f0c7a187c4e | |
parent | 98ed8bd3cc4638680b78ca41ab63acab2e802ad6 (diff) | |
download | paps-e891e6fa98eeff0740e1d4e4134ff79d57fdd4af.tar.gz paps-e891e6fa98eeff0740e1d4e4134ff79d57fdd4af.tar.xz paps-e891e6fa98eeff0740e1d4e4134ff79d57fdd4af.zip |
* src/paps.c (split_text_into_paragraphs): fixed a possible segfault
issue.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/paps.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -2,9 +2,12 @@ * src/paps.1: fixed a typo. (#1491827) - * src/paps.c: changed an option name --font_scale to --font-scale + * src/paps.c (main): changed an option name --font_scale to --font-scale according to other options prefers a hyphen other than underscore. + * src/paps.c (split_text_into_paragraphs): fixed a possible segfault + issue. + 2006-04-26 Dov Grobgeld <dov.grobgeld@gmail.com> * src/libpaps.c: Got rid of dead old crud. @@ -418,7 +418,7 @@ split_text_into_paragraphs (PangoContext *pango_context, GList *result = NULL; char *last_para = text; - while (*p) + while (p != NULL && *p) { wc = g_utf8_get_char (p); next = g_utf8_next_char (p); |