Commit f99ca985 authored by Slava Monich's avatar Slava Monich

[gsupplicant] Use gutil_memdup() instead of g_memdup(). JB#41874

g_memdup has been deprecated since glib 2.68
parent cca2eb4a
......@@ -7,7 +7,7 @@ License: BSD
URL: https://git.sailfishos.org/mer-core/libgsupplicant
Source: %{name}-%{version}.tar.bz2
%define libglibutil_version 1.0.21
%define libglibutil_version 1.0.52
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
......@@ -31,7 +31,7 @@ This package contains the development library for %{name}.
%setup -q
%build
make LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
make %{_smp_mflags} LIBDIR=%{_libdir} KEEP_SYMBOLS=1 release pkgconfig
%install
rm -rf %{buildroot}
......
/*
* Copyright (C) 2015-2020 Jolla Ltd.
* Copyright (C) 2015-2020 Slava Monich <slava.monich@jolla.com>
* Copyright (C) 2015-2021 Jolla Ltd.
* Copyright (C) 2015-2021 Slava Monich <slava.monich@jolla.com>
*
* You may use this file under the terms of BSD license as follows:
*
......@@ -910,7 +910,7 @@ gsupplicant_bss_update_rates(
/* Store the rates */
g_free(priv->rates_values);
priv->rates_values = g_memdup(values, sizeof(guint)*n);
priv->rates_values = gutil_memdup(values, sizeof(guint)*n);
priv->rates.values = priv->rates_values;
priv->rates.count = n;
self->rates = &priv->rates;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment