Module Name: src
Committed By: joerg
Date: Tue May 24 12:44:30 UTC 2011
Modified Files:
src/usr.bin/sdpquery: print.c
Log Message:
Properly use format strings
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.bin/sdpquery/print.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/sdpquery/print.c
diff -u src/usr.bin/sdpquery/print.c:1.7 src/usr.bin/sdpquery/print.c:1.8
--- src/usr.bin/sdpquery/print.c:1.7 Tue Dec 14 15:18:20 2010
+++ src/usr.bin/sdpquery/print.c Tue May 24 12:44:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.7 2010/12/14 15:18:20 plunky Exp $ */
+/* $NetBSD: print.c,v 1.8 2011/05/24 12:44:30 joerg Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: print.c,v 1.7 2010/12/14 15:18:20 plunky Exp $");
+__RCSID("$NetBSD: print.c,v 1.8 2011/05/24 12:44:30 joerg Exp $");
#include <ctype.h>
#include <iconv.h>
@@ -1097,7 +1097,7 @@
sep = "\n ";
while (sdp_get_uint8(&list, &v)) {
- printf(sep);
+ printf("%s", sep);
sep = ", ";
switch(v) {
@@ -1127,7 +1127,7 @@
sep = "\n ";
while (sdp_get_uint8(&list, &v)) {
- printf(sep);
+ printf("%s", sep);
sep = ", ";
switch(v) {
@@ -1433,7 +1433,7 @@
printf(" (v%d.%d", (v >> 8), (v & 0xff));
sep = "; ";
while (sdp_get_uint16(&seq, &v)) {
- printf(sep);
+ printf("%s", sep);
sep = ", ";
switch (v) {