From 1976ac750c74858714cae55a01b6703c75529fe0 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 28 Feb 2005 06:37:23 +0000 Subject: procheader.c: fixed the argument type of buffer length. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@132 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ ChangeLog.ja | 4 ++++ src/procheader.c | 6 +++--- src/procheader.h | 6 +++--- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index e20b9a2f..6018a375 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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); -- cgit v1.2.3