aboutsummaryrefslogtreecommitdiffstats
path: root/lseek.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lseek.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lseek.c b/lseek.c
index 53f46e1..8dbbe0c 100644
--- a/lseek.c
+++ b/lseek.c
@@ -64,7 +64,7 @@ liberror_lseek_failed(int fd, _liberror_off_t offset, int whence, const char *fn
desc = "";
break;
}
- liberror_libc_set_error_one_file(desc, "sockatmark", "Seekable file", fd, fname);
+ liberror_libc_set_error_one_file(desc, "lseek", "Seekable file", fd, fname);
errno = saved_errno;
}
@@ -80,11 +80,11 @@ liberror_lseek_short(int fd, _liberror_off_t offset, int whence, _liberror_uoff_
if (returned < 0 || (_liberror_uoff_t)returned < min) {
desc = "Seek resulted in a new offset in an earlier position than expected";
} else if ((_liberror_uoff_t)returned > max) {
- desc = "Seek resulted in a new offset in an beyond the expectation";
+ desc = "Seek resulted in a new offset beyond expectations";
} else {
desc = "Seek resulted in an unexpected new offset";
}
- liberror_set_error(desc, "recv", "liberror-libc", LIBERROR_LIBC_ERRROR_SHORT_SEEK);
+ liberror_set_error(desc, "lseek", "liberror-libc", LIBERROR_LIBC_ERROR_SHORT_SEEK);
error = liberror_get_error();
error->details_type = LIBERROR_DETAILS_ONE_FILE;
error->details.one_file.fd = fd;