]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
tar: Fix safe_fprintf comment
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 16 May 2025 21:25:42 +0000 (23:25 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 16 May 2025 22:23:01 +0000 (00:23 +0200)
The stack buffer is never used for out of memory messages.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
tar/util.c

index ea69aa9d740ddbeb58cd75799fef6f7a77437c9a..1321a6839793c739e5f2f11cf8e25883f19dfc46 100644 (file)
@@ -67,8 +67,7 @@ static const char *strip_components(const char *path, int elements);
  * malloc()), partly out of expedience (we have to call vsnprintf()
  * before malloc() anyway to find out how big a buffer we need; we may
  * as well point that first call at a small local buffer in case it
- * works), but mostly for safety (so we can use this to print messages
- * about out-of-memory conditions).
+ * works).
  */
 
 void