summary refs log tree commit diff stats
path: root/plugins/mpcinfo
diff options
context:
space:
mode:
authorIgor <f2404@yandex.ru>2016-10-12 11:20:30 +0300
committerTingPing <tingping@tingping.se>2016-10-14 13:18:49 -0400
commitf64d1c847a02cc198a5e3f8d35f40b33a9df8ac8 (patch)
tree69af8442f1b7109fb7f0bedcc5fafa3563e50d21 /plugins/mpcinfo
parent116a394ef6d76c914c3d684784a2a46f1fb6fa22 (diff)
mpcinfo: Do not modify string literals
Diffstat (limited to 'plugins/mpcinfo')
-rw-r--r--plugins/mpcinfo/oggInfo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/mpcinfo/oggInfo.c b/plugins/mpcinfo/oggInfo.c
index 8ecf0f5b..777d2106 100644
--- a/plugins/mpcinfo/oggInfo.c
+++ b/plugins/mpcinfo/oggInfo.c
@@ -48,7 +48,7 @@ struct tagInfo getOggHeader(char *file){
 	char *sub;
 	char *name;
 	char *val;
-	char *HEADLOC1, *HEADLOC3, *HEADLOC5;
+	char HEADLOC1[]="_vorbis", HEADLOC3[]="_vorbis", HEADLOC5[]="_vorbis";
 	FILE *f;
 	struct tagInfo info;
 
@@ -62,11 +62,8 @@ struct tagInfo getOggHeader(char *file){
 
 	for (i=0;i<4095;i++) {c=fgetc(f);header[i]=(char)c;}
 	fclose(f);
-	HEADLOC1="_vorbis";
 	HEADLOC1[0]=1;
-	HEADLOC3="_vorbis";
 	HEADLOC3[0]=3;
-	HEADLOC5="_vorbis";
 	HEADLOC5[0]=5;
 	h1pos=inStr(header,4096,HEADLOC1);
 	h3pos=inStr(header,4096,HEADLOC3);