mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 14:03:34 +08:00
Add apps/examples/wgetjson from Darcy Gong
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5281 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -60,6 +60,8 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -392,7 +394,7 @@ char *md5_hash(const uint8_t * addr, const size_t len)
|
||||
md5_sum(addr, len, digest);
|
||||
for (i = 0; i < 16; i++)
|
||||
{
|
||||
vsprintf(&hash[i * 2], "%.2x", digest[i]);
|
||||
sprintf(&hash[i * 2], "%.2x", digest[i]);
|
||||
}
|
||||
|
||||
hash[32] = 0;
|
||||
|
||||
Reference in New Issue
Block a user