Commit 385b4da5 authored by Matthew Burket's avatar Matthew Burket

Fixed up some issues

parent e1dcb880
Pipeline #326 canceled with stage
......@@ -100,8 +100,8 @@ int main() {
free(tokens);
continue;
}
for (int i = historyPos; i >= 0; i--) {
fprintf(stdout, "%2d %s\n", i + 1, historyBuff[i]);
for (int k = historyPos; k >= 0; k--) {
fprintf(stdout, "%2d %s\n", k + 1, historyBuff[i]);
}
storeHist(tokens, &historyPos, historyBuff, numTokens);
free(tokens);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment