[vlc-devel] commit: http access: use SCN instead of PRI with sscanf ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Dec 26 19:48:01 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Dec 26 19:46:40 2009 +0100| [ff894ff1a89ef8ea4dda9ba4799d6c86385fc49e] | committer: Jean-Baptiste Kempf
http access: use SCN instead of PRI with sscanf
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff894ff1a89ef8ea4dda9ba4799d6c86385fc49e
---
modules/access/http.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index 07ca300..13fa693 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -1418,7 +1418,7 @@ static int Request( access_t *p_access, int64_t i_tell )
int64_t i_ntell = i_tell;
int64_t i_nend = (p_access->info.i_size > 0)?(p_access->info.i_size - 1):i_tell;
int64_t i_nsize = p_access->info.i_size;
- sscanf(p,"bytes %"PRId64"-%"PRId64"/%"PRId64,&i_ntell,&i_nend,&i_nsize);
+ sscanf(p,"bytes %"SCNd64"-%"SCNd64"/%"SCNd64,&i_ntell,&i_nend,&i_nsize);
if(i_nend > i_ntell ) {
p_access->info.i_pos = i_ntell;
p_sys->i_remaining = i_nend+1-i_ntell;
More information about the vlc-devel
mailing list