On Tue, Apr 02, 2013 at 10:35:50PM +0200, Holger Freyther wrote: > +#define format_procfs_path(buffer, path, pid) \ > + snprintf(buffer, sizeof(buffer) - 1, "/proc/%lu/%s", (unsigned long) > pid, path); \ > + char_array_0(buffer); > + Hi, Lennart recently implemented a smarter way to do those short printfs: http://cgit.freedesktop.org/systemd/systemd/commit/?id=fa70beaabc56762fdf77e675c3e09bb638d89938. No need to use PATH_MAX.
Zbyszek _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
