summaryrefslogtreecommitdiff
path: root/src/xsane-email-project.c
diff options
context:
space:
mode:
authorJulien BLACHE <jblache@debian.org>2006-01-24 23:14:44 +0100
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:26 +0000
commit9d7d5dc7bfe282d0e3df4ea4111fa4a37f1629a2 (patch)
treedea383223c2d0e5bbe2012bbc36814fe68112b93 /src/xsane-email-project.c
parenta1871913efc67d71e7b355a8a03655cbf12ab07f (diff)
parent96b92dfa3cb0a3ae876a3e650984a404327cdf93 (diff)
Imported Debian patch 0.99+0.991-1debian/0.99+0.991-1
Diffstat (limited to 'src/xsane-email-project.c')
-rw-r--r--src/xsane-email-project.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/xsane-email-project.c b/src/xsane-email-project.c
index 67713ec..79df15b 100644
--- a/src/xsane-email-project.c
+++ b/src/xsane-email-project.c
@@ -489,7 +489,7 @@ static void xsane_email_project_set_sensitive(int sensitive)
static void xsane_email_project_display_status()
{
FILE *lockfile;
- char buf[256];
+ char buf[TEXTBUFSIZE];
char filename[PATH_MAX];
int val;
int i, c;
@@ -606,10 +606,10 @@ static gint xsane_email_send_timer_callback(gpointer data)
static void xsane_email_project_load()
{
FILE *projectfile;
- char page[256];
+ char page[TEXTBUFSIZE];
char *type;
char *extension;
- char buf[256];
+ char buf[TEXTBUFSIZE];
char filename[PATH_MAX];
GtkWidget *list_item;
int i;
@@ -858,7 +858,7 @@ static void xsane_email_project_delete()
{
char *page;
char *type;
- char file[256];
+ char file[PATH_MAX];
GList *list = (GList *) GTK_LIST(xsane.project_list)->children;
GtkObject *list_item;
@@ -890,7 +890,7 @@ static void xsane_email_project_update_project_status()
{
FILE *projectfile;
char filename[PATH_MAX];
- char buf[256];
+ char buf[TEXTBUFSIZE];
snprintf(filename, sizeof(filename), "%s/xsane-mail-list", preferences.email_project);
projectfile = fopen(filename, "r+b"); /* r+ = read and write, position = start of file */
@@ -911,7 +911,7 @@ void xsane_email_project_save()
char *page;
char *type;
gchar *email_text;
- char filename[256];
+ char filename[PATH_MAX];
DBG(DBG_proc, "xsane_email_project_save\n");
@@ -922,7 +922,7 @@ void xsane_email_project_save()
if (xsane_create_secure_file(filename)) /* remove possibly existing symbolic links for security */
{
- char buf[256];
+ char buf[TEXTBUFSIZE];
snprintf(buf, sizeof(buf), "%s %s %s\n", ERR_DURING_SAVE, ERR_CREATE_SECURE_FILE, filename);
xsane_back_gtk_error(buf, TRUE);
@@ -933,7 +933,7 @@ void xsane_email_project_save()
if (xsane.email_status)
{
- char buf[256];
+ char buf[TEXTBUFSIZE];
snprintf(buf, 32, "%s@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@", xsane.email_status); /* fill 32 characters status line */
fprintf(projectfile, "%s\n", buf); /* first line is status of email */
@@ -1224,8 +1224,8 @@ static void xsane_email_entry_rename_callback(GtkWidget *widget, gpointer list)
char *oldpage;
char *newpage;
char *type;
- char oldfile[256];
- char newfile[256];
+ char oldfile[PATH_MAX];
+ char newfile[PATH_MAX];
DBG(DBG_proc, "xsane_email_entry_rename_callback\n");
@@ -1344,7 +1344,7 @@ static void xsane_email_entry_delete_callback(GtkWidget *widget, gpointer list)
GList *select;
char *page;
char *type;
- char file[256];
+ char file[PATH_MAX];
DBG(DBG_proc, "xsane_email_entry_delete_callback\n");
@@ -1378,7 +1378,7 @@ static void xsane_email_show_callback(GtkWidget *widget, gpointer list)
GList *select;
char *page;
char *type;
- char filename[256];
+ char filename[PATH_MAX];
DBG(DBG_proc, "xsane_email_entry_show_callback\n");
@@ -1406,8 +1406,8 @@ static void xsane_email_edit_callback(GtkWidget *widget, gpointer list)
GList *select;
char *page;
char *type;
- char filename[256];
- char outfilename[256];
+ char filename[PATH_MAX];
+ char outfilename[PATH_MAX];
Image_info image_info;
int cancel_save = 0;
@@ -1447,10 +1447,10 @@ static void xsane_create_email(int fd)
char *email_text_pos = NULL;
char **attachment_filename = NULL;
char *mime_type = NULL;
- char buf[256];
- char filename[256];
- char content_id[256];
- char image[256];
+ char buf[TEXTBUFSIZE];
+ char filename[PATH_MAX];
+ char content_id[TEXTBUFSIZE];
+ char image[TEXTBUFSIZE];
int i, j;
int c;
int attachments = 0;
@@ -1536,7 +1536,7 @@ static void xsane_create_email(int fd)
if (strcmp("mailtext:", image) && (c > 1))
{
- char imagename[256];
+ char imagename[PATH_MAX];
char *filename;
char *extension;