diff options
Diffstat (limited to 'x11/libSM/files')
-rw-r--r-- | x11/libSM/files/patch-sm_genid.c | 17 | ||||
-rw-r--r-- | x11/libSM/files/patch-src_sm__genid.c | 11 |
2 files changed, 11 insertions, 17 deletions
diff --git a/x11/libSM/files/patch-sm_genid.c b/x11/libSM/files/patch-sm_genid.c deleted file mode 100644 index 24c383ca8f00..000000000000 --- a/x11/libSM/files/patch-sm_genid.c +++ /dev/null @@ -1,17 +0,0 @@ ---- src/sm_genid.c.orig 2010-06-04 20:15:04.000000000 +0200 -+++ src/sm_genid.c 2011-08-06 20:15:47.000000000 +0200 -@@ -111,11 +111,13 @@ SmsGenerateClientID(SmsConn smsConn) - { - #if defined(HAVE_UUID_CREATE) - char *id; -- char **temp; -+ char *temp; - uuid_t uuid; - uint32_t status; - - uuid_create(&uuid, &status); -+ if (status != uuid_s_ok) -+ return NULL; - - uuid_to_string(&uuid, &temp, &status); - diff --git a/x11/libSM/files/patch-src_sm__genid.c b/x11/libSM/files/patch-src_sm__genid.c new file mode 100644 index 000000000000..92dd079bbe68 --- /dev/null +++ b/x11/libSM/files/patch-src_sm__genid.c @@ -0,0 +1,11 @@ +--- src/sm_genid.c.orig 2018-10-10 15:05:03 UTC ++++ src/sm_genid.c +@@ -114,6 +114,8 @@ SmsGenerateClientID(SmsConn smsConn) + size_t len; + + uuid_create(&uuid, &status); ++ if (status != uuid_s_ok) ++ return NULL; + + uuid_to_string(&uuid, &temp, &status); + |