aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-02-28 06:37:23 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-02-28 06:37:23 +0000
commit1976ac750c74858714cae55a01b6703c75529fe0 (patch)
tree43f0c434e9de1e3561fe51a77cdf95be71d0306e
parent6afd63f00a030cd2b0123d174d3e57a6c4f5cb10 (diff)
procheader.c: fixed the argument type of buffer length.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@132 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja4
-rw-r--r--src/procheader.c6
-rw-r--r--src/procheader.h6
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);