Commits

a1ex  committed 10b9503

Junkie menu: replace strncpy with snprintf

  • Participants
  • Parent commits 2b270ef

Comments (0)

Files changed (1)

         // ON/OFF is obvious by color; print just the name
         if(strlen(info->short_name))
         {
-            strncpy(name, info->short_name, sizeof(name));
+            snprintf(name, sizeof(name), "%s", info->short_name);
         }
         else
         {
         
         if(strlen(info->short_value))
         {
-            strncpy(name, info->short_value, sizeof(name));
+            snprintf(name, sizeof(name), "%s", info->short_value);
         }
         else
         {