diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-03 19:11:52 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-03 19:11:52 -0800 |
commit | fe5f54299123fda8760ae8d40761ac0ffb8d908b (patch) | |
tree | 591346a10952bd9d64d9389403174f98270a0db0 /src | |
parent | 138282549e5cc98b2bb69177dfd16b99eafba085 (diff) | |
download | teliva-fe5f54299123fda8760ae8d40761ac0ffb8d908b.tar.gz |
typos
Diffstat (limited to 'src')
-rw-r--r-- | src/kilo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kilo.c b/src/kilo.c index 24ba9fd..991075b 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -412,8 +412,8 @@ void clearEditor(void) { /* Turn the editor rows into a single heap-allocated string. * Returns the pointer to the heap-allocated string and populate the - * integer pointed by 'buflen' with the size of the string, escluding - * the final nulterm. */ + * integer pointed by 'buflen' with the size of the string, excluding + * the final null term. */ static char *editorRowsToString(int *buflen) { char *buf = NULL, *p; int totlen = 0; @@ -423,7 +423,7 @@ static char *editorRowsToString(int *buflen) { for (j = 0; j < E.numrows; j++) totlen += E.row[j].size+1; /* +1 is for "\n" at end of every row */ *buflen = totlen; - totlen++; /* Also make space for nulterm */ + totlen++; /* Also make space for null term */ p = buf = malloc(totlen); for (j = 0; j < E.numrows; j++) { |