diff --git a/src/server/distrend.c b/src/server/distrend.c --- a/src/server/distrend.c +++ b/src/server/distrend.c @@ -984,15 +984,15 @@ int main(int argc, char *argv[]) submitter = NULL; email = NULL; - fprintf(stderr, "\nType: \n\t 1 \t blender\n\t 2 \t povray\n"); scanf("%d\n", &type); - fprintf(stderr, "\nName: "); getline(&name, &read_buf, stdin); + fprintf(stderr, "\nType: \n\t 1 \t blender\n\t 2 \t povray\n"); scanf("%d", &type); + fprintf(stderr, "\nName: "); scanf("\n"); getline(&name, &read_buf, stdin); fprintf(stderr, "\nSubmitter: "); getline(&submitter, &read_buf, stdin); fprintf(stderr, "\nEmail: "); getline(&email, &read_buf, stdin); - fprintf(stderr, "\nPriority: "); scanf("%d\n", &priority); - fprintf(stderr, "\nStart frame: "); scanf("%d\n", &start_frame); - fprintf(stderr, "\nEnd frame: "); scanf("%d\n", &end_frame); - fprintf(stderr, "\nWidth: "); scanf("%d\n", &width); - fprintf(stderr, "\nHeight: "); scanf("%d\n", &height); + fprintf(stderr, "\nPriority: "); scanf("%d", &priority); + fprintf(stderr, "\nStart frame: "); scanf("%d", &start_frame); + fprintf(stderr, "\nEnd frame: "); scanf("%d", &end_frame); + fprintf(stderr, "\nWidth: "); scanf("%d", &width); + fprintf(stderr, "\nHeight: "); scanf("%d", &height); prepare_distrenjob(&head, type, name, submitter, email, priority, start_frame, end_frame, width, height); break; case 5: