s3:pdbedit: fix "format not a string literal and no format arguments" warnings
authorMichael Adam <obnox@samba.org>
Fri, 29 May 2009 21:48:26 +0000 (23:48 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 29 May 2009 21:52:23 +0000 (23:52 +0200)
Michael

source3/utils/pdbedit.c

index 000f8c8d5689347645cc71868730806345500833..17175eb0808d6efb3237dfda1a81c9c6dac79856 100644 (file)
@@ -630,7 +630,7 @@ static int new_user(const char *username, const char *fullname,
 
        status = local_password_change(username, flags, pwd1, &err, &msg);
        if (!NT_STATUS_IS_OK(status)) {
-               if (err) fprintf(stderr, err);
+               if (err) fprintf(stderr, "%s", err);
                ret = -1;
                goto done;
        }
@@ -738,7 +738,7 @@ static int new_machine(const char *machinename)
                print_user_info(name, True, False);
                ret = 0;
        } else {
-               if (err) fprintf(stderr, err);
+               if (err) fprintf(stderr, "%s", err);
                ret = -1;
        }