[krb5-auth-dialog: 12/14] entry-buffer Avoid g_memmove()
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog: 12/14] entry-buffer Avoid g_memmove()
- Date: Tue, 5 Jan 2021 20:25:20 +0000 (UTC)
commit 8844464031309414084c2ef3b9b91aed13ea517d
Author: Guido Günther <agx sigxcpu org>
Date: Mon Jan 4 19:05:29 2021 +0100
entry-buffer Avoid g_memmove()
Fixes more deprecations
src/ka-entry-buffer.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ka-entry-buffer.c b/src/ka-entry-buffer.c
index a04387e..05874fd 100644
--- a/src/ka-entry-buffer.c
+++ b/src/ka-entry-buffer.c
@@ -123,8 +123,8 @@ ka_entry_buffer_pw_insert_text (GtkEntryBuffer *buffer,
/* Actual text insertion */
at = g_utf8_offset_to_pointer (pv->password,
position) - pv->password;
- g_memmove (pv->password + at + n_bytes, pv->password + at,
- pv->password_bytes - at);
+ memmove (pv->password + at + n_bytes, pv->password + at,
+ pv->password_bytes - at);
memcpy (pv->password + at, chars, n_bytes);
/* Book keeping */
@@ -158,8 +158,8 @@ ka_entry_buffer_pw_delete_text (GtkEntryBuffer *buffer,
g_utf8_offset_to_pointer (pv->password,
position + n_chars) - pv->password;
- g_memmove (pv->password + start, pv->password + end,
- pv->password_bytes + 1 - end);
+ memmove (pv->password + start, pv->password + end,
+ pv->password_bytes + 1 - end);
pv->password_chars -= n_chars;
pv->password_bytes -= (end - start);
gtk_entry_buffer_emit_deleted_text (GTK_ENTRY_BUFFER(self), position, n_chars);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]