[BACK]Return to fileio.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/fileio.c between version 1.109 and 1.110

version 1.109, 2023/03/08 04:43:11 version 1.110, 2023/03/30 07:26:15
Line 339 
Line 339 
                 goto nohome;                  goto nohome;
   
         if (conffile != NULL) {          if (conffile != NULL) {
                 (void)strncpy(file, conffile, NFILEN);                  (void)strlcpy(file, conffile, NFILEN);
         } else if (suffix == NULL) {          } else if (suffix == NULL) {
                 ret = snprintf(file, sizeof(file), _PATH_MG_STARTUP, home);                  ret = snprintf(file, sizeof(file), _PATH_MG_STARTUP, home);
                 if (ret < 0 || ret >= sizeof(file))                  if (ret < 0 || ret >= sizeof(file))

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.110