$OpenBSD: patch-lib-src_libnyquist_snd_sndheader_c,v 1.3 2007/06/06 09:35:18 ajacoutot Exp $
--- lib-src/libnyquist/snd/sndheader.c.orig	Wed Mar 28 09:16:45 2007
+++ lib-src/libnyquist/snd/sndheader.c	Wed Mar 28 09:17:08 2007
@@ -923,7 +923,7 @@ void snd_write_header(snd_type snd, long *flags)
             8 /*SSND hdr*/ + 8 /*SSND chunk*/;
         if (snd->format.bits != 8 && snd->format.bits != 16) {
             char msg[64];
-            sprintf(msg, "Warning: using 16 bits per sample instead of %d\n",
+            sprintf(msg, "Warning: using 16 bits per sample instead of %ld\n",
                          snd->format.bits);
             snd_warn(msg);
             snd->format.bits = 16;
