* Copyright (c) The Exim Maintainers 2015 - 2022
* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004 - 2015
* License: GPL
- * SPDX-License-Identifier: GPL-2.0-only
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "exim.h"
val = string_catn(val, fname++, 1);
val = string_catn(val, US"?=", 2);
-*len = val->ptr;
+*len = gstring_length(val);
return string_from_gstring(val);
}
int result = 0;
/* must find first free sequential filename */
- for (gstring * g = string_get(64); result != -1; g->ptr = 0)
+ for (gstring * g = string_get(64); result != -1; gstring_reset(g))
{
struct stat mystat;
g = string_fmt_append(g,