Similar to the previous commit, assigning a static string would crash
upon freeing.

Signed-off-by: Eric Engestrom <[email protected]>
---
 src/process.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/process.c b/src/process.c
index 1d7c07a..1ee1ceb 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1797,7 +1797,7 @@ ProcessConnectionReply (
 
            errorReply->type = ICE_CONNECTION_ERROR;
            errorReply->error_message =
-               "Received bad version index in Connection Reply";
+               strdup("Received bad version index in Connection Reply");
        }
        else
        {
@@ -2300,7 +2300,7 @@ ProcessProtocolReply (
 
            errorReply->type = ICE_PROTOCOL_ERROR;
            errorReply->error_message =
-               "Received bad version index in Protocol Reply";
+               strdup("Received bad version index in Protocol Reply");
        }
        else
        {
-- 
Cheers,
  Eric

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to