mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Fixed a problem with characters >0x7F in the modified version of skipspace()
This commit is contained in:
		| @@ -1405,6 +1405,7 @@ Marco Schl | ||||
|  for fixing handling ChannelUp/Down keys if there is currently a replay running | ||||
|  for fixing a buffer overflow in initializing the system character table | ||||
|  for reporting a missing 'P' in vdr.c's SHUTDOWNCANCELROMPT macro | ||||
|  for fixing a problem with characters >0x7F in the modified version of skipspace() | ||||
|  | ||||
| J<EFBFBD>rgen Schmitz <j.schmitz@web.de> | ||||
|  for reporting a bug in displaying the current channel when switching via the SVDRP | ||||
|   | ||||
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -5306,3 +5306,5 @@ Video Disk Recorder Revision History | ||||
|   find out when incomplete log excerpts were attached to problem reports in | ||||
|   the past. | ||||
| - Updated the Estonian OSD texts (thanks to Arthur Konovalov). | ||||
| - Fixed a problem with characters >0x7F in the modified version of skipspace() | ||||
|   (thanks to Marco Schl<68><6C>ler). | ||||
|   | ||||
							
								
								
									
										6
									
								
								tools.h
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tools.h
									
									
									
									
									
								
							| @@ -4,7 +4,7 @@ | ||||
|  * See the main source file 'vdr.c' for copyright information and | ||||
|  * how to reach the author. | ||||
|  * | ||||
|  * $Id: tools.h 1.105 2007/07/28 09:43:04 kls Exp $ | ||||
|  * $Id: tools.h 1.106 2007/07/28 12:54:49 kls Exp $ | ||||
|  */ | ||||
|  | ||||
| #ifndef __TOOLS_H | ||||
| @@ -175,9 +175,9 @@ char *strreplace(char *s, char c1, char c2); | ||||
| char *strreplace(char *s, const char *s1, const char *s2); ///< re-allocates 's' and deletes the original string if necessary! | ||||
| inline char *skipspace(const char *s) | ||||
| { | ||||
|   if (*s > ' ') // most strings don't have any leading space, so handle this case as fast as possible | ||||
|   if ((uchar)*s > ' ') // most strings don't have any leading space, so handle this case as fast as possible | ||||
|      return (char *)s; | ||||
|   while (*s && *s <= ' ') // avoiding isspace() here, because it is much slower | ||||
|   while (*s && (uchar)*s <= ' ') // avoiding isspace() here, because it is much slower | ||||
|         s++; | ||||
|   return (char *)s; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user