Skip to content

Commit

Permalink
replace tabs from editor with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
freakout42 committed Nov 27, 2024
1 parent f57dd5a commit 3f5ea9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runform/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ fclose(tf);
if (rm) unlink(tfp);
}
int tmpread(char *buf, int siz) {
return fread(buf, 1, siz, tf);
int i;
char *taber;
i = (int)fread(buf, 1, siz, tf);
for (taber=buf; taber-buf < i; taber++) if (*taber == '\t') *taber = ' ';
return i;
}
char *tmpget(char *buf, int siz) { return fgets(buf, siz, tf); }
void tmput(char *v) { if (*v) { if (v[1] == '\0') fputc(*v, tf); else fputs(v, tf); } }
Expand Down

0 comments on commit 3f5ea9e

Please sign in to comment.