]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/btape.c
kes Fix logic error in handling error return from mtx-changer
[bacula/bacula] / bacula / src / stored / btape.c
index 6fe9210bad5a81635c8974c9cb98a27caf72405d..f3c4b4d55ee7a4882a40bb882e4a55e20e575592 100644 (file)
@@ -167,7 +167,7 @@ int main(int margc, char *margv[])
    }
    x32 = 123456789;
    bsnprintf(buf, sizeof(buf), "%u", x32);
-   i = bsscanf(buf, "%u", &y32);
+   i = bsscanf(buf, "%lu", &y32);
    if (i != 1 || x32 != y32) {
       Pmsg3(-1, _("32 bit printf/scanf problem. i=%d x32=%u y32=%u\n"), i, x32, y32);
       exit(1);