mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 08:48:07 +02:00
Revert "Fix an incorrect sizeof." to fix attribution
This reverts commit 3c1938180b.
This commit is contained in:
parent
6dea6c050d
commit
9577e33c89
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ main (int argc, char *argv[])
|
|||
filters = (char **) realloc (filters, numFilters * sizeof (char *));
|
||||
if (filters == NULL)
|
||||
oom ("adding a new filter slot");
|
||||
filters[j] = (char *) malloc (filter_len);
|
||||
filters[j] = (char *) malloc (filter_len * sizeof (char *));
|
||||
if (filters[j] == NULL)
|
||||
oom ("adding a new filter");
|
||||
snprintf (filters[j], filter_len, "%s,%s", EAVESDROPPING_RULE, arg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue