Commits

g3gg0  committed 281b1eb

flexinfo: using internal strncpy

  • Participants
  • Parent commits f263ae2

Comments (0)

Files changed (1)

File src/flexinfo.c

     }
     
     /* copy text */
-    strncpy(buf, &(config[start]), end - start + 1);
+    info_strncpy(buf, &(config[start]), end - start + 1);
     buf[end - start + 1] = '\0';
     
-    
     return 0;
 }
 
     }
     
     /* copy text */
-    strncpy(buf, &(attribute_str[start]), end - start + 1);
+    info_strncpy(buf, &(attribute_str[start]), end - start + 1);
     buf[end - start + 1] = '\0';
 
     return 0;