We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ded0e58 commit 62c4b0cCopy full SHA for 62c4b0c
kirc.c
@@ -134,7 +134,7 @@ printw(const char *format, ...) {
134
spaceleft = cmax - (i - 1);
135
136
for(tok = strtok(&line[i], " "); tok != NULL; tok = strtok(NULL, " ")) {
137
- wordwidth = strlen(tok) - 1;
+ wordwidth = strlen(tok);
138
139
if ((wordwidth + spacewidth) > spaceleft) {
140
printf("\n%*.s%s ", (int) gutl + 1, " ", tok);
0 commit comments