Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Ports
xfce4-panel-plugin-netload
xfce4-panel-plugin-netload-fix-array-out-of-bou...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfce4-panel-plugin-netload-fix-array-out-of-bounds.patch of Package xfce4-panel-plugin-netload
Index: xfce4-netload-plugin-1.2.4/panel-plugin/net.c =================================================================== --- xfce4-netload-plugin-1.2.4.orig/panel-plugin/net.c +++ xfce4-netload-plugin-1.2.4/panel-plugin/net.c @@ -33,6 +33,8 @@ #include <config.h> #endif +#include <glib.h> + /* From Wormulon */ #include "net.h" #include "os.h" @@ -81,8 +83,7 @@ int init_netload(netdata* data, const ch return TRUE; } - strncpy( data->ifdata.if_name, device, INTERFACE_NAME_LENGTH); - data->ifdata.if_name[INTERFACE_NAME_LENGTH] = '\0'; + g_strlcpy(data->ifdata.if_name, device, sizeof(data->ifdata.if_name)); init_osspecific( data );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor