diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 4 | ||||
-rw-r--r-- | src/procheader.c | 6 | ||||
-rw-r--r-- | src/procheader.h | 6 |
4 files changed, 15 insertions, 6 deletions
@@ -1,3 +1,8 @@ +2005-02-28 + + * src/procheader.[ch]: fixed the argument type of buffer length + (thanks to Alfons). + 2005-02-27 * src/socket.c: sock_add_watch(): fixed a bug that g_io_add_watch() diff --git a/ChangeLog.ja b/ChangeLog.ja index c5d5b3cd..9ec463fc 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,7 @@ +2005-02-28 + + * src/procheader.[ch]: バッファ長の引数の型を修正(Alfons さん thanks)。 + 2005-02-27 * src/socket.c: sock_add_watch(): SSL 接続の場合でも g_io_add_watch() diff --git a/src/procheader.c b/src/procheader.c index b7baf940..ea611ff2 100644 --- a/src/procheader.c +++ b/src/procheader.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2004 Hiroyuki Yamamoto + * Copyright (C) 1999-2005 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -37,7 +37,7 @@ #define BUFFSIZE 8192 -gint procheader_get_one_field(gchar *buf, gint len, FILE *fp, +gint procheader_get_one_field(gchar *buf, size_t len, FILE *fp, HeaderEntry hentry[]) { gint nexthead; @@ -147,7 +147,7 @@ gint procheader_get_one_field(gchar *buf, gint len, FILE *fp, return hnum; } -gchar *procheader_get_unfolded_line(gchar *buf, gint len, FILE *fp) +gchar *procheader_get_unfolded_line(gchar *buf, size_t len, FILE *fp) { gboolean folded = FALSE; gint nexthead; diff --git a/src/procheader.h b/src/procheader.h index f03a97be..599324e1 100644 --- a/src/procheader.h +++ b/src/procheader.h @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2004 Hiroyuki Yamamoto + * Copyright (C) 1999-2005 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,11 +43,11 @@ struct _Header }; gint procheader_get_one_field (gchar *buf, - gint len, + size_t len, FILE *fp, HeaderEntry hentry[]); gchar *procheader_get_unfolded_line (gchar *buf, - gint len, + size_t len, FILE *fp); GSList *procheader_get_header_list_from_file (const gchar *file); |