Changeset - 00b17e957d9d
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 16 years ago 2009-10-13 23:01:15
ohnobinki@ohnopublishing.net
fixed missing \n for scanf("%d")
1 file changed with 8 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -976,23 +976,23 @@ int main(int argc, char *argv[])
 
      break;
 
    case 3:
 
      find_jobframe(&head, &tmp_job, &tmp_frame);
 
      fprintf(stderr, "\nJob#:%d", tmp_job->jobnum);
 
      fprintf(stderr, "\nFrame#:%d", tmp_frame->num);
 
      fprintf(stderr, "Job#:%d\n", tmp_job->jobnum);
 
      fprintf(stderr, "Frame#:%d\n", tmp_frame->num);
 
      break;
 
    case 4:
 
      name = NULL;
 
      submitter = NULL;
 
      email = NULL;
 

	
 
      fprintf(stderr, "\nType: \n\t 1 \t blender\n\t 2 \t povray\n"); scanf("%d", &type);
 
      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, "\nSubmitter: ");                getline(&submitter, &read_buf, stdin);
 
      fprintf(stderr, "\nEmail: ");                    getline(&email, &read_buf, stdin);
 
      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);
 
      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);
 
      prepare_distrenjob(&head, type, name, submitter, email, priority, start_frame, end_frame, width, height);
 
      break;
 
    case 5:
0 comments (0 inline, 0 general)