qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] commit d354899 (Fix OpenBSD linker warning, 2010-02-23)


From: Paolo Bonzini
Subject: [Qemu-devel] commit d354899 (Fix OpenBSD linker warning, 2010-02-23)
Date: Thu, 25 Feb 2010 15:00:49 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1

-                if (b)
-                    sprintf(b, "...");
+                if (b) {
+                    memcpy(b, "...", sizeof("..."));
+                }

What's wrong with strcpy? :-)  (I doubt OpenBSD warns about that too).

Paolo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]