Diff for /freem/src/mumps.c between versions 1.17 and 1.18

version 1.17, 2025/04/04 21:28:16 version 1.18, 2025/04/09 19:52:02
Line 24 Line 24
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.   *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *   *
  *   $Log$   *   $Log$
    *   Revision 1.18  2025/04/09 19:52:02  snw
    *   Eliminate as many warnings as possible while building with -Wall
    *
  *   Revision 1.17  2025/04/04 21:28:16  snw   *   Revision 1.17  2025/04/04 21:28:16  snw
  *   Remove custom_user and custom_group vars from freem and shed privileges per environment catalog settings   *   Remove custom_user and custom_group vars from freem and shed privileges per environment catalog settings
  *   *
Line 172  int main (int argc, char **argv, char ** Line 175  int main (int argc, char **argv, char **
   
     char *symname = (char *) calloc(STRLEN, sizeof(char));      char *symname = (char *) calloc(STRLEN, sizeof(char));
     char *symval = (char *) calloc(STRLEN, sizeof(char));      char *symval = (char *) calloc(STRLEN, sizeof(char));
       
     int namelen;  
     int vallen;  
   
     char cli_rtn_path[PATH_MAX] = {0};      char cli_rtn_path[PATH_MAX] = {0};
     char *cli_rtn_file;      char *cli_rtn_file;
     char cli_rtn_name[256];      char cli_rtn_name[256];
Line 863  int main (int argc, char **argv, char ** Line 863  int main (int argc, char **argv, char **
                   
           
 #if !defined(_AIX)  #if !defined(_AIX)
     if(import_env == TRUE) {      if (import_env == TRUE) {
   
         int i_maxlen = 255;          int i_maxlen = 255;
                   
         for(env = envp; *env != 0; env++) {          for (env = envp; *env != 0; env++) {                    
                           varname = strtok (*env, "=");
             namelen = 0;              varval = strtok (NULL, "=");
             vallen = 0;  
               
             varname = strtok(*env, "=");  
             varval = strtok(NULL, "=");  
   
             if(varval != NULL) {  
                 namelen = strlen (varname);  
                 vallen = strlen (varval);  
   
               if (varval != NULL) {
                 snprintf (symname, i_maxlen, "ENV.%s\201\201", varname);                  snprintf (symname, i_maxlen, "ENV.%s\201\201", varname);
                 strncpy (symval, varval, i_maxlen);                  strncpy (symval, varval, i_maxlen);
                                   

Removed from v.1.17  
changed lines
  Added in v.1.18


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>