diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:23 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:23 +0000 |
commit | 96b92dfa3cb0a3ae876a3e650984a404327cdf93 (patch) | |
tree | 991a1ea3b056ca5804e2bca75fc4e134152fb3cd /src/xsane-device-preferences.c | |
parent | 7fad909266d49203537a28e6acc5d96b14bf4e7f (diff) |
Imported Upstream version 0.99+0.991upstream/0.99+0.991
Diffstat (limited to 'src/xsane-device-preferences.c')
-rw-r--r-- | src/xsane-device-preferences.c | 10 |
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"); |