source: trunk/patches/torque.cfg.patch @ 5

Last change on this file since 5 was 5, checked in by bas, 17 years ago

First import for the OSS torque_2_deb project

File size: 740 bytes
  • src/server/pbsd_main.c

     
    452452  time_t last_jobstat_time;
    453453  int    when;
    454454
     455  int    BuffSize;
    455456  char   *Buffer;
    456457
    457458  void   ping_nodes A_((struct work_task *ptask));
     
    476477
    477478  ProgName = argv[0];
    478479
    479   Buffer=calloc(65536,sizeof(char));
     480  BuffSize=65536;
     481  Buffer=calloc(1,BuffSize);
    480482
    481483  /* if we are not running with real and effective uid of 0, forget it */
    482484
     
    502504
    503505  /* load/process config file first then override values with command line parameters */
    504506
    505   if (TLoadConfig(Buffer,sizeof(Buffer)) == 0)
     507  if (TLoadConfig(Buffer,BuffSize) == 0)
    506508    {
    507509    char *ptr;
    508510    char *tptr;
Note: See TracBrowser for help on using the repository browser.