"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/domacro.c" between
tnftp-20151004.tar.gz and tnftp-20200705.tar.gz

About: tnftp is an enhanced ftp client (prior name "lukemftp").

domacro.c  (tnftp-20151004):domacro.c  (tnftp-20200705)
/* $NetBSD: domacro.c,v 1.8 2009/05/20 12:53:47 lukem Exp $ */ /* $NetBSD: domacro.c,v 1.9 2020/07/04 09:59:07 lukem Exp $ */
/* from NetBSD: domacro.c,v 1.22 2009/04/12 10:18:52 lukem Exp */ /* from NetBSD: domacro.c,v 1.23 2019/02/03 03:19:29 mrg Exp */
/* /*
* Copyright (c) 1985, 1993, 1994 * Copyright (c) 1985, 1993, 1994
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
* are met: * are met:
* 1. Redistributions of source code must retain the above copyright * 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer. * notice, this list of conditions and the following disclaimer.
skipping to change at line 42 skipping to change at line 42
#include "tnftp.h" #include "tnftp.h"
#if 0 /* tnftp */ #if 0 /* tnftp */
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)domacro.c 8.3 (Berkeley) 4/2/94"; static char sccsid[] = "@(#)domacro.c 8.3 (Berkeley) 4/2/94";
#else #else
__RCSID(" NetBSD: domacro.c,v 1.22 2009/04/12 10:18:52 lukem Exp "); __RCSID(" NetBSD: domacro.c,v 1.23 2019/02/03 03:19:29 mrg Exp ");
#endif #endif
#endif /* not lint */ #endif /* not lint */
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#endif /* tnftp */ #endif /* tnftp */
#include "ftp_var.h" #include "ftp_var.h"
skipping to change at line 112 skipping to change at line 112
if (*(cp1+1) == 'i') { if (*(cp1+1) == 'i') {
loopflg = 1; loopflg = 1;
cp1++; cp1++;
if (count < argc) { if (count < argc) {
(void)strlcpy(cp2, argv[count], (void)strlcpy(cp2, argv[count],
sizeof(line) - (cp2 - line)); sizeof(line) - (cp2 - line));
cp2 += strlen(argv[count]); cp2 += strlen(argv[count]);
} }
break; break;
} }
/* intentional drop through */ /* FALLTHROUGH */
default: default:
*cp2++ = *cp1; *cp2++ = *cp1;
break; break;
} }
if (*cp1 != '\0') if (*cp1 != '\0')
cp1++; cp1++;
} }
*cp2 = '\0'; *cp2 = '\0';
makeargv(); makeargv();
c = getcmd(margv[0]); c = getcmd(margv[0]);
 End of changes. 3 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)