X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-text-utils.c;h=5742fbb9e7437d4aca180090ec44a332e2a10470;hp=ddf2476e0f224b7551888e379cef1e30c4fda327;hb=8e9ad2c9665f7d9146cef7d0c619d2a87309eaec;hpb=5fc7538688f5e00d27fca03b79744e86a072bb1a diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index ddf2476..5742fbb 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -1,9 +1,38 @@ -/* modest-ui.c */ +/* Copyright (c) 2006, Nokia Corporation + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of the Nokia Corporation nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS + * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + -/* insert (c)/licensing information) */ +/* modest-ui.c */ #include #include +#include #include "modest-text-utils.h" @@ -74,7 +103,6 @@ get_indent_level (const char *l) static void unquote_line (GString * l) { - GString *r; gchar *p; p = l->str; @@ -175,7 +203,7 @@ modest_text_utils_quote (const gchar * to_quote, const gchar * from, const time_t sent_date, const int limit) { const gchar *iter; - gint indent, breakpoint, rem_indent; + gint indent, breakpoint, rem_indent = 0; gchar sent_str[101]; GString *q, *l, *remaining; gsize len;