solve alsa.c snprintf formatting errors

This commit is contained in:
randomuser 2022-11-13 15:31:11 +00:00
parent 17b91b436f
commit 653915eca6
1 changed files with 2 additions and 1 deletions

3
alsa.c
View File

@ -3,6 +3,7 @@
#include <fcntl.h>
#include <time.h>
#include <alsa/asoundlib.h>
#include <alloca.h>
#include "module.h"
@ -68,7 +69,7 @@ int audio_volume(long *outvol) {
int alsa_update(struct module *module) {
long vol = -1;
audio_volume(&vol);
snprintf((char *)&module->buffer, MODULE_BUFFER_LEN, "%l", vol);
snprintf((char *)&module->buffer, MODULE_BUFFER_LEN, "%li", vol);
return 0;
}