+Mon Jan 15 09:18:53 EST 2008 Daniel P. Berrange <berrange@redhat.com>
+
+ * src/remote_internal.c: Fix off by one in checking SSH
+ argv for NULL. Fix format args in error message to avoid
+ compile warning.
+
2008-01-14 Jim Meyering <meyering@redhat.com>
Update files from gnulib.
cmd_argv[j++] = strdup (sockname ? sockname : LIBVIRTD_PRIV_UNIX_SOCKET);
cmd_argv[j++] = 0;
assert (j == nr_args);
- for (j = 0; j < nr_args; j++)
+ for (j = 0; j < (nr_args-1); j++) {
if (cmd_argv[j] == NULL) {
error (conn, VIR_ERR_SYSTEM_ERROR, strerror (ENOMEM));
goto failed;
}
+ }
}
/*FALLTHROUGH*/
}
__virRaiseError (in_open ? NULL : conn, NULL, NULL, VIR_FROM_REMOTE,
VIR_ERR_AUTH_FAILED, VIR_ERR_ERROR, NULL, NULL, NULL,
- 0, 0, msg);
+ 0, 0, "%s", msg);
goto cleanup;
}
free(iret.mechlist);
}
__virRaiseError (in_open ? NULL : conn, NULL, NULL, VIR_FROM_REMOTE,
VIR_ERR_AUTH_FAILED, VIR_ERR_ERROR, NULL, NULL, NULL,
- 0, 0, msg);
+ 0, 0, "%s", msg);
goto cleanup;
}