From cf324a881ec9e5533fc05b9db8e8bd9a7b16a18c Mon Sep 17 00:00:00 2001 From: ppisa Date: Sat, 29 Oct 2005 22:40:14 +0000 Subject: [PATCH] Elimination of some easily fix-able warnings for GCC-4.0.2. There is still bunch of more problematic things related to the C99 strict aliasing rules. --- ulut/ul_dbufmore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ulut/ul_dbufmore.c b/ulut/ul_dbufmore.c index 95d032f..f9b9b26 100644 --- a/ulut/ul_dbufmore.c +++ b/ulut/ul_dbufmore.c @@ -114,8 +114,8 @@ int ul_dbuff_set_len(ul_dbuff_t *buf, int new_len) ul_dbuff_set_capacity(buf, new_cap); } if(new_len > buf->capacity) { - buf->data = buf->sbuff; - strncpy(buf->data, "set_len ERROR", buf->capacity); + /*buf->data = buf->sbuff;*/ + /*strncpy(buf->data, "set_len ERROR", buf->capacity);*/ new_len = buf->capacity; } buf->len = new_len; -- 2.39.2