[g-a-devel] Bug Correction in test-speech program



Hi

I was just installing freeTTS enabled test-speech for a friend, when I hit this seg fault. Decided to fix it, since I can now understand this piece of code. This is part of "parameter_tests" function. Bold text needs to be incorporated and submitted by the developer whenever he/she makes the next submit.

        speaker_say_print (speaker, "Parameter to change (1 through %d, "
                   "0 to exit): ", list->_length);
        fgets (input, 80, stdin);
        choice = atoi(input);
        if (choice == 0) {
            done = 1;
            break;
        }
        else if (choice > list->_length) {
            break;
        }
        p = &(list->_buffer[choice-1]);
        GNOME_Speech_Speaker_stop (speaker, &ev);
        speaker_say_print (speaker, "new %s? %.2lf through %.2lf.",
                   p->name, p->min, p->max);

--
Aditya Kumar Pandey
----------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]