tar: support -T - and -X -
[oweals/busybox.git] / libbb / xrealloc_vector.c
index bbd5ab8ac3d00605f0ac06499c463c3cf3d7e534..e8d31b7e4a3b1e53221e6412d7f3d05c7ac27449 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (C) 2008 Denys Vlasenko
  *
- * Licensed under GPLv2, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2, see file LICENSE in this source tree.
  */
 
 #include "libbb.h"
@@ -20,8 +20,9 @@
  * idx step, plus one: if idx == 0x20, vector[] is resized to 0x31,
  * thus last usable element is vector[0x30].
  *
- * In other words: after xrealloc_vector(v, 4, idx) it's ok to use
- * at least v[idx] and v[idx+1], for all idx values.
+ * In other words: after xrealloc_vector(v, 4, idx), with any idx,
+ * it's ok to use at least v[idx] and v[idx+1].
+ * v[idx+2] etc generally are not ok.
  *
  * New elements are zeroed out, but only if realloc was done
  * (not on every call). You can depend on v[idx] and v[idx+1] being