Skip to content

Commit 62c4b0c

Browse files
authored
Update kirc.c
1 parent ded0e58 commit 62c4b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kirc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ printw(const char *format, ...) {
134134
spaceleft = cmax - (i - 1);
135135

136136
for(tok = strtok(&line[i], " "); tok != NULL; tok = strtok(NULL, " ")) {
137-
wordwidth = strlen(tok) - 1;
137+
wordwidth = strlen(tok);
138138

139139
if ((wordwidth + spacewidth) > spaceleft) {
140140
printf("\n%*.s%s ", (int) gutl + 1, " ", tok);

0 commit comments

Comments
 (0)