]> andersk Git - moira.git/blobdiff - lib/sq.c
1. Remove the backup volume before the volume name changes (if n.<volume>)
[moira.git] / lib / sq.c
index eabefd615728f94595b211d86c3ba5ba9c8da01a..952f5c876ec3bb2e1d9ab7c32544b2ff0f47fb61 100644 (file)
--- a/lib/sq.c
+++ b/lib/sq.c
@@ -9,6 +9,7 @@
 
 #include <mit-copyright.h>
 #include <moira.h>
+#include <string.h>
 
 extern char *malloc();
 
@@ -51,7 +52,7 @@ sq_save_args(argc, argv, sq)
     for (i = 0; i < argc; i++) {
        n = strlen(argv[i]) + 1;
        argv_copy[i] = (char *)malloc(n);
-       bcopy(argv[i], argv_copy[i], n);
+       memcpy(argv_copy[i], argv[i], n);
     }
 
     sq_save_data(sq, (char *)argv_copy);
This page took 0.030957 seconds and 4 git commands to generate.