[glib: 9/13] gthreadedresolver: Treat query and answer counts as unsigned
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 9/13] gthreadedresolver: Treat query and answer counts as unsigned
- Date: Tue, 22 Mar 2022 15:18:52 +0000 (UTC)
commit 0d42af06e07c8f52811a082714a3a50d3030fb6f
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Mar 21 14:51:08 2022 +0000
gthreadedresolver: Treat query and answer counts as unsigned
They can’t be negative.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
gio/gthreadedresolver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c
index 143f4570be..aeeb40e9b4 100644
--- a/gio/gthreadedresolver.c
+++ b/gio/gthreadedresolver.c
@@ -738,7 +738,7 @@ g_resolver_records_from_res_query (const gchar *rrname,
gint herr,
GError **error)
{
- gint count;
+ uint16_t count;
gchar namebuf[1024];
const guint8 *end, *p;
guint16 type, qclass, rdlength;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]