about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-09-09 09:48:04 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-09-09 09:48:04 +0200
commit8c4ce7a9394b898b01deaed375579b8e36f11923 (patch)
treef1965f15a6eebb2efad0a2d5e8090408a4484f28 /src
parent0a8d69dc46a7b44490b89e16657d4d13de41b77c (diff)
downloadprofani-tty-8c4ce7a9394b898b01deaed375579b8e36f11923.tar.gz
notifier: Use glib function
Diffstat (limited to 'src')
-rw-r--r--src/ui/notifier.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/notifier.c b/src/ui/notifier.c
index 02f7edfe..a9aa38c7 100644
--- a/src/ui/notifier.c
+++ b/src/ui/notifier.c
@@ -77,10 +77,9 @@ notifier_uninit(void)
 void
 notify_typing(const char* const name)
 {
-    char message[strlen(name) + 1 + 11];
-    sprintf(message, "%s: typing...", name);
-
+    gchar *message = g_strdup_printf("%s: typing...", name);
     notify(message, 10000, "Incoming message");
+    g_free(message);
 }
 
 void