diff options
-rw-r--r-- | lib/ZGetWGPort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ZGetWGPort.c b/lib/ZGetWGPort.c index a7c623c..b9901f8 100644 --- a/lib/ZGetWGPort.c +++ b/lib/ZGetWGPort.c @@ -38,7 +38,7 @@ short ZGetWGPort() return (-1); /* if fscanf fails, return -1 via wgport */ - if (fscanf(fp, "%d", &wgport) != 1) + if (fscanf(fp, "%hd", &wgport) != 1) wgport = -1; (void) fclose(fp); |