/[pdpsoft]/trunk/grid-mw-security/ees/src/eef/eef_log.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/eef/eef_log.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 857 by aramv, Tue Sep 29 15:30:24 2009 UTC revision 858 by aramv, Tue Sep 29 15:40:57 2009 UTC
# Line 29  EES_RC eef_log(int priority, const char* Line 29  EES_RC eef_log(int priority, const char*
29          return 0;          return 0;
30  }  }
31    
32  char* append_newline(char* string){  const char* append_newline(const char* string){
33      char* mutable_string;
34    if(!strchr(string, '\n')){    if(!strchr(string, '\n')){
35      realloc(string, (sizeof(char) * (strlen(string)+1)));      mutable_string = strdup(string);
36      strncat(string, "\n", 1);      mutable_string = realloc(mutable_string, (sizeof(char) * (strlen(string)+1)));
37        strncat(mutable_string, "\n", 1);
38        return mutable_string;
39    }    }
40    return string;    return string;
41  }  }

Legend:
Removed from v.857  
changed lines
  Added in v.858

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28