Second set of 50 GPL attribution for CV-Contributors added
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / maskauto.C
index 1d3e982197497d701fbb54020f99377f5db0e2e9..1a6cf5f816daa5d37f71ae5447db162a8d3a60b1 100644 (file)
@@ -2,6 +2,7 @@
 /*
  * CINELERRA
  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
+ * Copyright (C) 2003-2016 Cinelerra CV contributors
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -100,7 +101,7 @@ void SubMask::copy_from(SubMask& ptr, int do_name)
 {
        if( do_name ) {
                memset(name, 0, sizeof(name));
-               strncpy(name, ptr.name, sizeof(name-1));
+               strncpy(name, ptr.name, sizeof(name)-1);
        }
        fader = ptr.fader;
        feather = ptr.feather;