aboutsummaryrefslogtreecommitdiffstats
path: root/src/openac
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-04-20 13:08:32 +0200
committerMartin Willi <martin@revosec.ch>2011-04-20 13:08:32 +0200
commit47786557268d7079bed8b53f1d56eec927c49238 (patch)
tree20b947b5d10596c95209e3e69f7b251f40d76d34 /src/openac
parent52846ec820a0e936372e15fbf34b830e4cd8ccdb (diff)
downloadstrongswan-47786557268d7079bed8b53f1d56eec927c49238.tar.bz2
strongswan-47786557268d7079bed8b53f1d56eec927c49238.tar.xz
Cast size_t len arguments to %.*s to int
Diffstat (limited to 'src/openac')
-rwxr-xr-xsrc/openac/openac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openac/openac.c b/src/openac/openac.c
index 79b493b5f..745988750 100755
--- a/src/openac/openac.c
+++ b/src/openac/openac.c
@@ -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);
}