From 031996ef501f8c3d0532f7df1c38cf2e540a4f11 Mon Sep 17 00:00:00 2001 From: Dariusz Michaluk Date: Tue, 13 Feb 2024 15:38:29 +0100 Subject: Imported Upstream version 4.19.0 --- lib/gstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gstr.c') diff --git a/lib/gstr.c b/lib/gstr.c index e91a3a1..eef4195 100644 --- a/lib/gstr.c +++ b/lib/gstr.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2014 Free Software Foundation, Inc. + * Copyright (C) 2002-2022 Free Software Foundation, Inc. * * This file is part of LIBTASN1. * @@ -40,7 +40,7 @@ _asn1_str_cat (char *dest, size_t dest_tot_size, const char *src) } else { - if (dest_tot_size - dest_size > 0) + if (dest_tot_size > dest_size) { strncat (dest, src, (dest_tot_size - dest_size) - 1); dest[dest_tot_size - 1] = 0; -- cgit v1.2.3