SHA256
1
0
forked from pool/pesign
pesign/pesign-client-read-pin-file.patch
Andreas Jaeger 0ad967d243 Accepting request 148393 from home:gary_lin:UEFI
Pesign is a tool to sign PE-COFF binaries which is the format
used in UEFI. The UEFI loader, shim, needs pesign for package
building.

OBS-URL: https://build.opensuse.org/request/show/148393
OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign?expand=0&rev=1
2013-01-14 10:49:40 +00:00

15 lines
376 B
Diff

diff --git a/src/client.c b/src/client.c
index dcc5257..9bcaf3e 100644
--- a/src/client.c
+++ b/src/client.c
@@ -201,7 +201,8 @@ get_token_pin(int pinfd, char *pinfile, char *envname)
if (!pinf)
return NULL;
- ssize_t n = getline(&pin, 0, pinf);
+ size_t pin_n;
+ ssize_t n = getline(&pin, &pin_n, pinf);
if (n < 0 || !pin) {
fclose(pinf);
return NULL;