Explorar o código

purple(k): fix sprintf invocation, we need some printing destination here

Henning Westerholt %!s(int64=15) %!d(string=hai) anos
pai
achega
16ca5f004c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules_k/purple/purple.c

+ 1 - 1
modules_k/purple/purple.c

@@ -399,7 +399,7 @@ static int func_handle_publish(struct sip_msg* msg) {
 				note.len = sprintf(note.s, "Idle");
 			}
 			else
-				note.len = sprintf(note.s, notestr);
+				note.len = sprintf(note.s, "%s", notestr);
 		}
 	}