You must be logged in to post Login Register


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Jukebox build in r974 is broke. Simple patch inside.

UserPost

1:12 am
July 17, 2010


Locke

Elkhart, IN

Member

posts 5

Post edited 5:15 am – July 17, 2010 by Locke


I don't know when the break occurred. I decided to update the jukebox on my server, and it wouldn't play. I don't recall what commit I was previously at, but when I updated to r974 and built it, it wouldn't pay music.

Determined it was in the switch in the jukebox_player function. Works on both the crappy old server and the desktop.

 

edit: Inserting code is a pain on this forum.

@@ -306,7 +306,7 @@
}
conninfo->volume = vol / 100.0;
char chat_msg[64];
- snprintf(chat_msg, 63, "volume is now %d%%", vol);
+ sprintf(chat_msg, "volume is now %d%%", vol);
v3_send_chat_message(chat_msg);
} else if (strncmp(ev->data->chatmessage, "!play ", 6) == 0 || strncmp(ev->data->chatmessage, "!playonly ", 10) == 0) {
char *searchspec;

1:21 am
July 17, 2010


Haxar

Moderator

posts 58

I don't see anything obvious with that. What would be this "break"? Did the compiler throw any warnings or errors at that line?


About the Mangler forum

Forum Timezone: America/New_York

Most Users Ever Online: 30

Currently Online:
8 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 1
Forums: 4
Topics: 244
Posts: 1124

Membership:

There are 726 Members

There is 1 Admin
There are 2 Moderators

Top Posters:

clearscreen – 48
dardack – 18
Krovikan – 16
FWishbringer – 14
faldiin – 12
vpro – 11

Recent New Members: metap0d, cajinboy, HeartofDixie, Gridge, morusec, Redsolardragon

Administrators: econnell (319 Posts)

Moderators: Haxar (58 Posts), bobshaffer (2 Posts)