Displaying 1 result from an estimated 1 matches for "origoptstr".
2002 Dec 23
3
rsync 2.5.5 SCO Unixware patch
...-void log_close()
+void log_close(void)
{
if (logfile) {
fclose(logfile);
--- popt/popt.c.orig Mon Dec 23 21:51:59 2002
+++ popt/popt.c Mon Dec 23 21:59:21 2002
@@ -443,9 +443,10 @@
}
/* Make a copy we can hack at */
- localOptString = optString =
- strcpy(ALLOCA(strlen(origOptString) + 1),
- origOptString);
+ { int n = strlen(origOptString) + 1;
+ localOptString = optString = ALLOCA(n);
+ strcpy(optString, origOptString);
+ }
if (!optString[0])
return POPT_ERROR_BADOPT;