ron minnich wrote: > char *partport = "parport0"; > static char parportname[MAXPATHLEN]; > > sprintf(parportname, "/proc/sys/dev/parport/%s/base-addr", parport );
Please make sure to always use snprintf(parportname, sizeof(parportname), "/proc/...", parport); to avoid buffer overflows, and check the return value. Not that I always do, but I should. //Peter -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

