# libtiff: fix watcom warning: &array may not produce intended result

**URL:** <https://discourse.libsdl.org/t/libtiff-fix-watcom-warning-array-may-not-produce-intended-result/46677>\
**Category:** SDL Commits\
**Created:** [October 18, 2023, 2:02pm UTC](https://discourse.libsdl.org/t/libtiff-fix-watcom-warning-array-may-not-produce-intended-result/46677 "2023-10-18T14:02:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [October 18, 2023, 2:02pm UTC](https://discourse.libsdl.org/t/libtiff-fix-watcom-warning-array-may-not-produce-intended-result/46677/1 "2023-10-18T14:02:13Z")

</div>

> <https://github.com/libsdl-org/libtiff/commit/e2e50f1bff6a235c510a917785577eaa6467effc>

```diff
From e2e50f1bff6a235c510a917785577eaa6467effc Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 16 Oct 2023 11:10:40 +0300
Subject: [PATCH] fix watcom warning: &array may not produce intended result

---
 libtiff/tif_dir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libtiff/tif_dir.c b/libtiff/tif_dir.c
index f0295422..2b067d59 100644
--- a/libtiff/tif_dir.c
+++ b/libtiff/tif_dir.c
@@ -635,7 +635,7 @@ _TIFFVSetField(TIFF* tif, uint32 tag, va_list ap)
 				uint16 v2[2];
 				v2[0] = (uint16)va_arg(ap, int);
 				v2[1] = (uint16)va_arg(ap, int);
- _TIFFmemcpy(tv->value, &v2, 4);
+ _TIFFmemcpy(tv->value, v2, 4);
 			}
 
 			else if (fip->field_passcount

```
