summaryrefslogtreecommitdiff
path: root/src/xsane-device-preferences.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-device-preferences.c
parenta1871913efc67d71e7b355a8a03655cbf12ab07f (diff)
parent96b92dfa3cb0a3ae876a3e650984a404327cdf93 (diff)
Imported Debian patch 0.99+0.991-1debian/0.99+0.991-1
Diffstat (limited to 'src/xsane-device-preferences.c')
-rw-r--r--src/xsane-device-preferences.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xsane-device-preferences.c b/src/xsane-device-preferences.c
index 57c5ae8..003cb77 100644
--- a/src/xsane-device-preferences.c
+++ b/src/xsane-device-preferences.c
@@ -366,7 +366,7 @@ static int xsane_device_preferences_save_values(Wire *w, SANE_Handle device)
void xsane_device_preferences_load_file(char *filename)
{
int fd;
- char buf[256];
+ char buf[TEXTBUFSIZE];
#if 0
char *version = 0;
#endif
@@ -461,7 +461,7 @@ void xsane_device_preferences_load_file(char *filename)
if (w.status)
{
- char buf[256];
+ char buf[TEXTBUFSIZE];
snprintf(buf, sizeof(buf), "%s\n%s %s", ERR_LOAD_DEVICE_SETTINGS, filename, ERR_NO_DRC_FILE);
xsane_back_gtk_error(buf, TRUE);
@@ -612,7 +612,7 @@ void xsane_device_preferences_restore(void)
void xsane_device_preferences_load(void)
{
char filename[PATH_MAX];
- char windowname[256];
+ char windowname[TEXTBUFSIZE];
DBG(DBG_proc, "xsane_device_preferences_load\n");
@@ -649,7 +649,7 @@ void xsane_device_preferences_save_file(char *filename)
fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (fd < 0)
{
- char buf[256];
+ char buf[TEXTBUFSIZE];
snprintf(buf, sizeof(buf), "%s %s.", ERR_FAILED_CREATE_FILE, strerror(errno));
xsane_back_gtk_error(buf, TRUE);
@@ -763,7 +763,7 @@ void xsane_device_preferences_store(void)
void xsane_device_preferences_save(void)
{
char filename[PATH_MAX];
- char windowname[256];
+ char windowname[TEXTBUFSIZE];
DBG(DBG_proc, "xsane_device_preferences_save\n");