Zach Welch <zw@superlucidity.net> fix -Wformat-security warnings (1 of 4)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1481 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -470,7 +470,7 @@ static int vsllink_init(void)
|
||||
vsllink_usb_in_buffer[result] = 0;
|
||||
VSLLINK_BufferSize = vsllink_usb_in_buffer[0] + (vsllink_usb_in_buffer[1] << 8);
|
||||
strncpy(version_str, (char *)vsllink_usb_in_buffer + 2, sizeof(version_str));
|
||||
LOG_INFO(version_str);
|
||||
LOG_INFO("%s", version_str);
|
||||
|
||||
// free the pre-alloc memroy
|
||||
free(vsllink_usb_in_buffer);
|
||||
@@ -1449,7 +1449,7 @@ static void vsllink_debug_buffer(u8 *buffer, int length)
|
||||
snprintf(s, 4, " %02x", buffer[j]);
|
||||
strcat(line, s);
|
||||
}
|
||||
LOG_DEBUG(line);
|
||||
LOG_DEBUG("%s", line);
|
||||
}
|
||||
}
|
||||
#endif // _DEBUG_USB_COMMS_
|
||||
|
||||
Reference in New Issue
Block a user