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

Fixed up some issues

parent e1dcb880
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);