On Fri, 03.04.15 13:23, Tom Gundersen ([email protected]) wrote:
>
> - tags = strdupa(value);
> + FOREACH_WORD_SEPARATOR(word, l, value, ":", state) {
> + char *tag;
>
> - while ((next = strchr(tags, ':'))) {
> - next[0] = '\0';
> + tag = strndupa(word, l);
>
Repeat after me: I shall not use alloca() within loops. I shall not
use alloca() within loops. I shall not use alloca() within loops.
This cannot work.
Lennart
--
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel