}
amfree(line);
}
- aclose(supportout);
+ fclose(streamout);
streamerr = fdopen(supporterr, "r");
if (!streamerr) {
error(_("Error opening pipe to child: %s"), strerror(errno));
}
amfree(bsu);
}
- aclose(supporterr);
+ fclose(streamerr);
if (waitpid(supportpid, &status, 0) < 0) {
err = vstrallocf(_("waitpid failed: %s"), strerror(errno));
if (BSTRNCMP(line, "PROPERTY ") == 0) {
char *property_name, *property_value;
property_name = line + 9;
- property_value = index(property_name,' ');
+ property_value = strchr(property_name,' ');
if (property_value == NULL) {
char *msg = g_strdup_printf(
"ERROR %s: Bad output property: %s",