[rtmpdump] r190 - trunk/hashswf.c

hyc subversion at mplayerhq.hu
Tue Jan 5 06:00:43 CET 2010


Author: hyc
Date: Tue Jan  5 06:00:42 2010
New Revision: 190

Log:
Fix prev commit

Modified:
   trunk/hashswf.c

Modified: trunk/hashswf.c
==============================================================================
--- trunk/hashswf.c	Tue Jan  5 04:46:39 2010	(r189)
+++ trunk/hashswf.c	Tue Jan  5 06:00:42 2010	(r190)
@@ -260,7 +260,7 @@ RTMP_HashSWF(const char *url, unsigned i
   f = fopen(path, "r+");
   while (f)
     {
-      char buf[4096], *file;
+      char buf[4096], *file, *p;
 
       file = strchr(url, '/');
       if (!file)
@@ -271,7 +271,11 @@ RTMP_HashSWF(const char *url, unsigned i
         break;
       file++;
       hlen = file - url;
-      file = strrchr(file, '/');
+      p = strrchr(file, '/');
+      if (p)
+        file = p;
+      else
+        file--;
 
       while (fgets(buf, sizeof(buf), f))
         {


More information about the rtmpdump mailing list