[BACK]Return to shquote.3 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/shquote.3 between version 1.3 and 1.4

version 1.3, 2002/02/07 07:00:17 version 1.4, 2002/02/07 09:24:04
Line 153  int argc;
Line 153  int argc;
  * Size buffer to hold the command string, and allocate it.   * Size buffer to hold the command string, and allocate it.
  * Buffer of length one given to snprintf() for portability.   * Buffer of length one given to snprintf() for portability.
  */   */
 cmdlen = snprintf(&c, 1, "${PROG-%s} ", PROG_DEFAULT);  cmdlen = snprintf(\*[Am]c, 1, "${PROG-%s} ", PROG_DEFAULT);
 qlen = shquotev(argc, argv, NULL, 0) + 1;  qlen = shquotev(argc, argv, NULL, 0) + 1;
 if (qlen == (size_t)-1) {  if (qlen == (size_t)-1) {
         \&...          \&...
Line 191  int argc, i;
Line 191  int argc, i;
  * Size buffer to hold the command string, and allocate it.   * Size buffer to hold the command string, and allocate it.
  * Buffer of length one given to snprintf() for portability.   * Buffer of length one given to snprintf() for portability.
  */   */
 cmdlen = snprintf(&c, 1, "${PROG-%s} ", PROG_DEFAULT);  cmdlen = snprintf(\*[Am]c, 1, "${PROG-%s} ", PROG_DEFAULT);
 for (i = 0; i \*[Lt] argc; i++) {  for (i = 0; i \*[Lt] argc; i++) {
         qlen = shquote(argv[i], NULL, 0) + 1;          qlen = shquote(argv[i], NULL, 0) + 1;
         if (qlen == (size_t)-1) {          if (qlen == (size_t)-1) {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>