Changeset 519

Show
Ignore:
Timestamp:
11/02/09 17:01:07 (3 weeks ago)
Author:
cristy
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/magick/client.c

    r1 r519  
    4545 
    4646/* 
    47   Static declaractions. 
    48 */ 
    49 static char 
    50   client_name[MaxTextExtent] = "ImageMagick", 
    51   client_path[MaxTextExtent] = ""; 
    52  
    53 /* 
    5447%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    5548%                                                                             % 
     
    7164MagickExport const char *GetClientName(void) 
    7265{ 
    73   return(client_name); 
     66  return(SetClientName((const char *) NULL)); 
    7467} 
    7568 
     
    9487MagickExport const char *GetClientPath(void) 
    9588{ 
    96   return(client_path); 
     89  return(SetClientPath((const char *) NULL)); 
    9790} 
    9891 
     
    116109%  A description of each parameter follows: 
    117110% 
    118 %    o client_name: SetClientName() returns the current client name. 
    119 % 
    120111%    o name: Specifies the new client name. 
    121112% 
     
    123114MagickExport const char *SetClientName(const char *name) 
    124115{ 
     116  static char 
     117    client_name[MaxTextExtent] = "Magick"; 
     118 
    125119  if ((name != (char *) NULL) && (*name != '\0')) 
    126120    (void) CopyMagickString(client_name,name,MaxTextExtent); 
     
    149143%  A description of each parameter follows: 
    150144% 
    151 %    o client_path: Method SetClientPath returns the current client path. 
    152 % 
    153145%    o path: Specifies the new client path. 
    154 % 
    155146% 
    156147*/ 
    157148MagickExport const char *SetClientPath(const char *path) 
    158149{ 
     150  static char 
     151    client_path[MaxTextExtent] = ""; 
     152 
    159153  if ((path != (char *) NULL) && (*path != '\0')) 
    160154    (void) CopyMagickString(client_path,path,MaxTextExtent);