public inbox for eudev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [eudev] [PATCH] udev-event.c: do not assign s to address to pointer
@ 2017-12-02 17:21 99% Marcus Folkesson
  0 siblings, 0 replies; 1+ results
From: Marcus Folkesson @ 2017-12-02 17:21 UTC (permalink / raw
  To: eudev; +Cc: marcus.folkesson

Solve a bug that could result in really nasty behavior.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
 src/udev/udev-event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c
index 19079bf02..4120c04f2 100644
--- a/src/udev/udev-event.c
+++ b/src/udev/udev-event.c
@@ -201,7 +201,7 @@ subst:
                         _s = s;
                         _l = l;
                         /* temporarily use sbuf */
-                        s = &sbuf;
+                        s = sbuf;
                         l = UTIL_PATH_SIZE;
                 }
 
-- 
2.15.0



^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-12-02 17:21 99% [eudev] [PATCH] udev-event.c: do not assign s to address to pointer Marcus Folkesson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox