user-none / KDocker

Dock most applications to the system tray
GNU General Public License v2.0
316 stars 22 forks source link

src/trayitemmanager.cpp:253: bad array size #80

Closed dcb314 closed 3 months ago

dcb314 commented 4 years ago

src/trayitemmanager.cpp:253:38: warning: division 'sizeof (char*) / sizeof (char)' does not compute the number of array elements [-Wsizeof-pointer-div]

Source code is

 if (((sizeof(optarg) / sizeof(*optarg)) > 2) && ((optarg[1] == 'x') || (optarg[1] == 'X'))) {
user-none commented 3 months ago

This code has been rewritten.