Cast size_t len arguments to %.*s to int

This commit is contained in:
Martin Willi
2011-04-20 13:08:32 +02:00
parent 52846ec820
commit 4778655726
5 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ static void write_serial(chunk_t serial)
DBG1(DBG_LIB, " serial number is %#B", &serial);
hex_serial = chunk_to_hex(serial, NULL, FALSE);
fprintf(fd, "%.*s\n", hex_serial.len, hex_serial.ptr);
fprintf(fd, "%.*s\n", (int)hex_serial.len, hex_serial.ptr);
fclose(fd);
free(hex_serial.ptr);
}