This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efm2.
View the commit online.
commit fa4b0a3ed62b58ee5a422101560cbe67caecb2d3
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Thu May 23 12:25:10 2024 +0100
status - fix status to escape fields
---
src/backends/default/status.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/backends/default/status.c b/src/backends/default/status.c
index 8501e39..cad830e 100644
--- a/src/backends/default/status.c
+++ b/src/backends/default/status.c
@@ -4,6 +4,7 @@
#define _GNU_SOURCE
#include "status.h"
+#include "esc.h"
#include <Eina.h>
#include <Ecore_File.h>
@@ -224,7 +225,7 @@ status_op(const char *op)
msg = eina_thread_queue_send(status_thq, sizeof(Msg_Op), &ref);
msg->type = MSG_OP;
- msg->op = op ? strdup(op) : NULL;
+ msg->op = op ? escape(op) : NULL;
eina_thread_queue_send_done(status_thq, ref);
}
@@ -237,7 +238,7 @@ status_count(unsigned long long num_inc, const char *str)
msg = eina_thread_queue_send(status_thq, sizeof(Msg_Count), &ref);
msg->type = MSG_COUNT;
msg->inc = num_inc;
- msg->str = str ? strdup(str) : NULL;
+ msg->str = str ? escape(str) : NULL;
eina_thread_queue_send_done(status_thq, ref);
}
@@ -250,7 +251,7 @@ status_pos(unsigned long long pos_inc, const char *str)
msg = eina_thread_queue_send(status_thq, sizeof(Msg_Pos), &ref);
msg->type = MSG_POS;
msg->inc = pos_inc;
- msg->str = str ? strdup(str) : NULL;
+ msg->str = str ? escape(str) : NULL;
eina_thread_queue_send_done(status_thq, ref);
}
@@ -262,8 +263,8 @@ status_error(const char *src, const char *dst, const char *str)
msg = eina_thread_queue_send(status_thq, sizeof(Msg_Err), &ref);
msg->type = MSG_ERR;
- msg->src = "" ? strdup(src) : NULL;
- msg->dst = dst ? strdup(dst) : NULL;
- msg->str = str ? strdup(str) : NULL;
+ msg->src = "" ? escape(src) : NULL;
+ msg->dst = dst ? escape(dst) : NULL;
+ msg->str = str ? escape(str) : NULL;
eina_thread_queue_send_done(status_thq, ref);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.