patch-cf-execd_cf-execd_c 458 B

12345678910111213
  1. $OpenBSD: patch-cf-execd_cf-execd_c,v 1.1 2016/01/22 11:38:23 sthen Exp $
  2. --- cf-execd/cf-execd.c.orig Wed Jan 20 01:40:30 2016
  3. +++ cf-execd/cf-execd.c Wed Jan 20 01:42:49 2016
  4. @@ -568,7 +568,7 @@ static bool ScheduleRun(EvalContext *ctx, Policy **pol
  5. EvalContextClear(ctx);
  6. - strcpy(VDOMAIN, "undefined.domain");
  7. + strlcpy(VDOMAIN, "undefined.domain", sizeof(VDOMAIN));
  8. PolicyDestroy(*policy);
  9. *policy = NULL;