examples: Remove all uses of strcpy in examples (except for validchr.c).
[nivanova/samba-autobuild/.git] / examples / libsmbclient / testsmbc.c
index 1f98c3afa7a0a454494b6bef04cb43d52b49d156..3c9aa5674cdaab40cd988a72abadcb6c081952b3 100644 (file)
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
   /* Now, write some date to the file ... */
 
   memset(buff, '\0', sizeof(buff));
-  strcpy(buff, "Some test data for the moment ...");
+  snprintf(buff, sizeof(buff), "%s", "Some test data for the moment ...");
 
   err = smbc_write(fd, buff, sizeof(buff));