Change input to avoid buffer overflow #14

Merged
cromer merged 4 commits from fgets into master 2018-11-13 12:25:40 -03:00
Showing only changes of commit 9f99802fae - Show all commits

View File

@ -232,11 +232,12 @@ int main (int argc, char **argv) {
// quick sort
}
else if (algoritmo == 2) {
fprintf(stdout, "Bubble sort corriendo...\n");
fprintf(stdout, "Bubble sort corriendo... ");
fflush(stdout);
start_timer();
bubble_sort(array, n);
stop_timer();
fprintf(stdout, "done\n");
}
else if (algoritmo == 3) {
// bitonic sort