+
+ /*
+ * Truncate name if too long, only if we are doing an 'add'
+ * type operation. We only allow 15 cause rest of ar
+ * isn't smart enough to deal with non-null terminated
+ * names. Need an exit status convention...
+ * Need yet another new archive format...
+ */
+ if (truncate && strlen(p2) > sizeof(arbuf.ar_name) - 1) {
+ fprintf(stderr, "ar: filename %s truncated to ", p2);
+ *(p2 + sizeof(arbuf.ar_name) - 1) = '\0';
+ fprintf(stderr, "%s\n", p2);
+ }