Changeset - 28cc833e90ef
[Not reviewed]
default
0 1 0
LordOfWar - 16 years ago 2009-10-13 22:39:13

attempting to fix segfaults
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/server/distrend.c
Show inline comments
 
@@ -944,12 +944,13 @@ int main(int argc, char *argv[])
 
  char *email;
 
  int priority;
 
  int width;
 
  int height;
 
  int start_frame;
 
  int end_frame;
 
  size_t read_buf;
 

	
 
  while(test == 1)
 
  {
 
    fprintf(stderr, "Welcome to DistRen Alpha Interactive Test Mode\n\n");
 
    fprintf(stderr, "\t1 \tPrint all frames in a job\n");
 
    fprintf(stderr, "\t2 \tExamine certain job\n");
 
@@ -977,15 +978,15 @@ int main(int argc, char *argv[])
 
      find_jobframe(&head, &tmp_job, &tmp_frame);
 
      fprintf(stderr, "\nJob#:%d", tmp_job->jobnum);
 
      fprintf(stderr, "\nFrame#:%d", tmp_frame->num);
 
      break;
 
    case 4:
 
      fprintf(stderr, "\nType: \n\t 1 \t blender\n\t 2 \t povray\n"); scanf("%d", &type);
 
      fprintf(stderr, "\nName: ");                     scanf("%s", name);
 
      fprintf(stderr, "\nSubmitter: ");                scanf("%s", submitter);
 
      fprintf(stderr, "\nEmail: ");                    scanf("%s", email);
 
      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);
 
      prepare_distrenjob(&head, type, name, submitter, email, priority, start_frame, end_frame, width, height);
0 comments (0 inline, 0 general)