public inbox for eudev@lists.gentoo.org
 help / color / mirror / Atom feed
* [eudev] [PATCH] udev-event.c: do not assign s to address to pointer
@ 2017-12-02 17:21 Marcus Folkesson
  2017-12-04 12:47 ` Anthony G. Basile
  0 siblings, 1 reply; 3+ messages in thread
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	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-04 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-02 17:21 [eudev] [PATCH] udev-event.c: do not assign s to address to pointer Marcus Folkesson
2017-12-04 12:47 ` Anthony G. Basile
2017-12-04 12:59   ` Marcus Folkesson

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