Changeset 3114:5b7fa334f64c in roaraudio
- Timestamp:
- 01/11/10 09:44:37 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_tantalos.c
r3113 r3114 35 35 #include "libroar.h" 36 36 37 #define _LEN 1024 38 37 39 int roar_vio_open_tantalos (struct roar_vio_calls * calls, struct roar_vio_calls * dst, 38 40 char * key, struct roar_vio_defaults * odef) { 39 41 #ifdef ROAR_HAVE_LIBSLP 40 42 struct roar_slp_cookie cookie; 41 char * url;43 char url[_LEN]; 42 44 int i; 43 45 … … 49 51 50 52 for (i = 0; i < cookie.matchcount; i++) { 51 url = cookie.match[i].url + ROAR_SLP_URL_TYPE_DOWNLOAD_HTTP_LEN - 4; 53 strncpy(url, cookie.match[i].url + ROAR_SLP_URL_TYPE_DOWNLOAD_HTTP_LEN - 4, _LEN); 54 strcat(url, key); 55 56 ROAR_DBG("roar_vio_open_tantalos(*): url='%s'"); 57 58 if ( roar_vio_open_dstr(calls, url, odef, 1) == 0 ) 59 return 0; 52 60 } 53 61
Note: See TracChangeset
for help on using the changeset viewer.