|
|
b23552 |
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
b23552 |
Date: Wed, 18 Dec 2013 13:39:07 +0400
|
|
|
b23552 |
Subject: [PATCH] Remove g_memmove
|
|
|
b23552 |
|
|
|
b23552 |
Glib no longer offers this macro so we have to fallback to C90 memmove.
|
|
|
b23552 |
|
|
|
b23552 |
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
b23552 |
|
|
|
b23552 |
diff --git a/epan/dissectors/packet-ssl-utils.c b/epan/dissectors/packet-ssl-utils.c
|
|
|
b23552 |
index 1ab3c8d..0f1ad44 100644
|
|
|
b23552 |
--- a/epan/dissectors/packet-ssl-utils.c
|
|
|
b23552 |
+++ b/epan/dissectors/packet-ssl-utils.c
|
|
|
b23552 |
@@ -1633,7 +1633,7 @@ ssl_private_decrypt(guint len, guchar* encr_data, SSL_PRIVATE_KEY* pk)
|
|
|
b23552 |
ssl_debug_printf("pcry_private_decrypt: stripping %d bytes, decr_len %" G_GSIZE_MODIFIER "u\n",
|
|
|
b23552 |
rc, decr_len);
|
|
|
b23552 |
ssl_print_data("decrypted_unstrip_pre_master", decr_data_ptr, decr_len);
|
|
|
b23552 |
- g_memmove(decr_data_ptr, &decr_data_ptr[rc], decr_len - rc);
|
|
|
b23552 |
+ memmove(decr_data_ptr, &decr_data_ptr[rc], decr_len - rc);
|
|
|
b23552 |
decr_len -= rc;
|
|
|
b23552 |
|
|
|
b23552 |
out:
|
|
|
b23552 |
@@ -1670,7 +1670,7 @@ out:
|
|
|
b23552 |
ssl_debug_printf("pcry_private_decrypt: stripping %d bytes, decr_len %d\n",
|
|
|
b23552 |
rc, decr_len);
|
|
|
b23552 |
ssl_print_data("decrypted_unstrip_pre_master", decr_data_ptr, decr_len);
|
|
|
b23552 |
- g_memmove(decr_data_ptr, &decr_data_ptr[rc], decr_len - rc);
|
|
|
b23552 |
+ memmove(decr_data_ptr, &decr_data_ptr[rc], decr_len - rc);
|
|
|
b23552 |
decr_len -= rc;
|
|
|
b23552 |
#endif /* SSL_FAST */
|
|
|
b23552 |
gcry_mpi_release(text);
|
|
|
b23552 |
diff --git a/packaging/macosx/native-gtk/glibconfig.h b/packaging/macosx/native-gtk/glibconfig.h
|
|
|
b23552 |
index e0a9589..2730202 100644
|
|
|
b23552 |
--- a/packaging/macosx/native-gtk/glibconfig.h
|
|
|
b23552 |
+++ b/packaging/macosx/native-gtk/glibconfig.h
|
|
|
b23552 |
@@ -78,8 +78,6 @@ typedef unsigned long gsize;
|
|
|
b23552 |
# define g_ATEXIT(proc) (atexit (proc))
|
|
|
b23552 |
#endif
|
|
|
b23552 |
|
|
|
b23552 |
-#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
|
|
|
b23552 |
-
|
|
|
b23552 |
#define GLIB_MAJOR_VERSION 2
|
|
|
b23552 |
#define GLIB_MINOR_VERSION 12
|
|
|
b23552 |
#define GLIB_MICRO_VERSION 9
|
|
|
b23552 |
diff --git a/ui/export_object_smb.c b/ui/export_object_smb.c
|
|
|
b23552 |
index dec3de9..59ccaa2 100644
|
|
|
b23552 |
--- a/ui/export_object_smb.c
|
|
|
b23552 |
+++ b/ui/export_object_smb.c
|
|
|
b23552 |
@@ -254,7 +254,7 @@ gpointer dest_memory_addr;
|
|
|
b23552 |
/* ...then, put the chunk of the file in the right place */
|
|
|
b23552 |
if (!file->is_out_of_memory) {
|
|
|
b23552 |
dest_memory_addr = entry->payload_data + chunk_offset;
|
|
|
b23552 |
- g_memmove(dest_memory_addr, eo_info->payload_data, eo_info->payload_len);
|
|
|
b23552 |
+ memmove(dest_memory_addr, eo_info->payload_data, eo_info->payload_len);
|
|
|
b23552 |
}
|
|
|
b23552 |
}
|
|
|
b23552 |
|