More abstraction of the gstring API
[exim.git] / src / src / mime.c
index 7c3a33d623b83c2bb1e2e0524c7b0d8a9c819354..d4c26540a6e5279f4c1ffc7f39c54aec71edc4c9 100644 (file)
@@ -755,7 +755,7 @@ while(1)
     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,