[OpenAFS-devel] Incorrect uses of strcpy?

ober ober@linbsd.org
Thu, 12 Jan 2006 19:13:20 -0600 (CST)


I found the following fragment in
         } else {
                 strcpy(mountRoot, sizeof(cm_mountRoot), "/afs");
                 cm_mountRootLen = 4;
         }

in line 94 of src/WINNT/client_config/afsmap.c
Is it correct to call strcpy with 3 options?

Just curious as that did not look right.

-Ober