dmikushin / tray

Cross-platform, super tiny C99 implementation of a system tray icon with a popup menu.
MIT License
87 stars 16 forks source link

Constify tooltip string pointer #15

Closed cgutman closed 5 months ago

cgutman commented 10 months ago

The tooltip member should be a const char* since the string data is just used as a source for strncpy(). This allows callers to initialize the tooltip member with a string literal without triggering a -Wwrite-strings warning.

dmikushin commented 5 months ago

Hi @cgutman , thank you!