projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
750ef4b
)
; Correct merge errors.
author
Po Lu
<luangruo@yahoo.com>
Mon, 17 Feb 2025 03:36:41 +0000
(11:36 +0800)
committer
Eshel Yaron
<me@eshelyaron.com>
Tue, 18 Feb 2025 08:47:39 +0000
(09:47 +0100)
(cherry picked from commit
718a227f0fb926864c5224b5664b4b76c631039f
)
src/pgtkterm.c
patch
|
blob
|
history
diff --git
a/src/pgtkterm.c
b/src/pgtkterm.c
index 60313ec263707060727bb23d91a43f66994183b7..605250da1b75bb66c5458e30afdbeafadf33d1ba 100644
(file)
--- a/
src/pgtkterm.c
+++ b/
src/pgtkterm.c
@@
-188,11
+188,9
@@
pgtk_enumerate_devices (struct pgtk_display_info *dpyinfo,
if (t1->data)
{
rec->device = GDK_DEVICE (t1->data);
- snprintf (printbuf, 1026, "%u:%s",
- gdk_device_get_source (rec->device),
- gdk_device_get_name (rec->device));
-
- rec->name = build_string (printbuf);
+ source = gdk_device_get_source (rec->device);
+ name = gdk_device_get_name (rec->device);
+ rec->name = make_formatted_string ("%u:%s", source, name);
}
else
{