ron minnich wrote: > > 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. > > arg! good point. I have gotten out of the habit of using any of > these, as Plan 9 has this: > smprint(format, ...) > > smprint mallocs the buffer as needed.
It's asprintf in GNU. > snprintf now feels SOOO 20th-century, as my daughter might say :-) It still makes sense in loops, to avoid overhead. //Peter -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

