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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Jun 2009 07:33:42 +0000 (09:33 +0200)
Michael
(cherry picked from commit 2b68fb7cb4ab5b76028c54ef163badd2952fe0c0)
(cherry picked from commit 138b037c437ad27466646beb33e1922b6d18ef8c)

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;
        }