Gedare Bloom commented on a discussion on 
bsps/powerpc/shared/start/motload-gev-net-env.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152637

 > +      }
 > +      *(nfs_export - 1) = ':';
 > +      setenv("RTEMS_NFS_MOUNT_PATH", nfs_server, 1);
 > +    } else {
 > +      printf("error: GEV epics-script: no server delimiter found\n");
 > +    }
 > +  }
 > +}
 > +
 > +void motload_gev_set_net_envs(uintptr_t nvram_base, const size_t unit,
 > +                              const char* label) {
 > +  /*
 > +   * The boot script is parsed for `tftpGet` settings -s -g and -m
 > +   * and the values are used if there are no explictic names set.
 > +   */
 > +  char var[256];

i think the `var` field is only set by the `snprintf` below, and then it is 
unmodified? It just have to be large enough for the string "RTEMS_NET_IFACE_%i" 
unless I misunderstood something.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1276#note_152637
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to