summaryrefslogtreecommitdiff
path: root/p11-kit/pin.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-07-17 05:47:59 +0200
committerStef Walter <stefw@gnome.org>2012-07-17 05:50:07 +0200
commitd51914b6483b7ddc806ee3861084aa98ee97a7fb (patch)
treea44a632483bba73fae25cef7a3874efbf7f18ea9 /p11-kit/pin.c
parent4a6a685c03bd92566c1656f1af3662ca7deecefa (diff)
Use EFBIG as the error code when pin file is too large
* The previous EOVERFLOW was not supported on mingw
Diffstat (limited to 'p11-kit/pin.c')
-rw-r--r--p11-kit/pin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/pin.c b/p11-kit/pin.c
index f7ec783..183b5f8 100644
--- a/p11-kit/pin.c
+++ b/p11-kit/pin.c
@@ -473,7 +473,7 @@ p11_kit_pin_file_callback (const char *pin_source,
for (;;) {
if (used + block > 4096) {
- error = EOVERFLOW;
+ error = EFBIG;
break;
}
if (used + block > allocated) {