Ticket #1307: admin_mail.c.diff

File admin_mail.c.diff, 752 bytes (added by dlove, 11 years ago)

potential fix (untested)

  • source/daemons/common/admin_mail.c

    old new  
    289289     
    290290      strcpy(sge_mail_body_total, sge_mail_body);
    291291
    292      
     292      start = strlen(sge_mail_body_total);
    293293      for (i=0; i<num_files; i++) {
    294294         if (shepherd_files[i].exists) {
    295             sprintf(sge_mail_body_total, "%s\nShepherd %s:\n",
    296                       sge_mail_body_total, shepherd_filenames[i]);
     295            sprintf(sge_mail_body_total+start, "\nShepherd %s:\n",
     296                    shepherd_filenames[i]);
    297297            start = strlen(sge_mail_body_total);
    298298            if ((fp = fopen(shepherd_files[i].filepath, "r"))) {
    299299               int n;