projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed clang-format and clang_complete files from the repo
[dosdemo]
/
src
/
dos
/
logger.c
diff --git
a/src/dos/logger.c
b/src/dos/logger.c
index
2d61070
..
1976770
100644
(file)
--- a/
src/dos/logger.c
+++ b/
src/dos/logger.c
@@
-49,6
+49,7
@@
int print_tail(const char *fname)
if(!(fp = fopen(fname, "r"))) {
return -1;
}
if(!(fp = fopen(fname, "r"))) {
return -1;
}
+ wr = rd = 0;
lineoffs[wr++] = 0;
while(fgets(buf, sizeof buf, fp)) {
lineoffs[wr] = ftell(fp);
lineoffs[wr++] = 0;
while(fgets(buf, sizeof buf, fp)) {
lineoffs[wr] = ftell(fp);