valerie_response_printf( cmd_arg->response, 1024, "U%d %02d %s %d\n", i, node, constructor, online );
}
}
+ valerie_response_printf( cmd_arg->response, 1024, "\n" );
return error;
}
strncpy( cmd_arg->root_dir, value, 1023 );
/* add a trailing slash if needed */
- if ( cmd_arg->root_dir[ len - 1 ] != '/')
+ if ( len && cmd_arg->root_dir[ len - 1 ] != '/')
{
cmd_arg->root_dir[ len ] = '/';
cmd_arg->root_dir[ len + 1 ] = '\0';