catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
327 stars 82 forks source link

Fix potential warning overflow #937

Closed lars18th closed 2 years ago

lars18th commented 2 years ago

Eliminates this compiling warning:

minisatip.c: In function ‘ssdp_notify’:
minisatip.c:1615:28: warning: ‘%s’ directive writing up to 49 bytes into a region of size 43 [-Wformat-overflow=]
 1615 |     sprintf(nt[1], "::uuid:%s", uuid);
      |                            ^~   ~~~~
minisatip.c:1615:5: note: ‘sprintf’ output between 8 and 57 bytes into a destination of size 50
 1615 |     sprintf(nt[1], "::uuid:%s", uuid);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lars18th commented 2 years ago

Fixes #927