summaryrefslogtreecommitdiffstats
path: root/libiptc/libip4tc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libiptc/libip4tc.c')
-rw-r--r--libiptc/libip4tc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c
index 1f33f1c9..3c7b0738 100644
--- a/libiptc/libip4tc.c
+++ b/libiptc/libip4tc.c
@@ -154,7 +154,8 @@ dump_entry(STRUCT_ENTRY *e, struct iptc_handle *const handle)
t = GET_TARGET(e);
printf("Target name: `%s' [%u]\n", t->u.user.name, t->u.target_size);
if (strcmp(t->u.user.name, STANDARD_TARGET) == 0) {
- int pos = *(int *)t->data;
+ const unsigned char *data = t->data;
+ int pos = *(const int *)data;
if (pos < 0)
printf("verdict=%s\n",
pos == -NF_ACCEPT-1 ? "NF_ACCEPT"