summaryrefslogtreecommitdiff
path: root/src/preproc/preconv/preconv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/preproc/preconv/preconv.cpp')
-rw-r--r--src/preproc/preconv/preconv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preproc/preconv/preconv.cpp b/src/preproc/preconv/preconv.cpp
index 460562771..e52b3eee6 100644
--- a/src/preproc/preconv/preconv.cpp
+++ b/src/preproc/preconv/preconv.cpp
@@ -1020,7 +1020,8 @@ detect_file_encoding(FILE *fp)
char *ret = NULL;
current_position = ftell(fp);
- /* due to BOM and tag detection we are not at the begining of the file */
+ /* Due to BOM and tag detection, we are not at the beginning of the
+ file. */
rewind(fp);
if (fstat(fileno(fp), &stat_buf) != 0) {
error("fstat: %1", strerror(errno));