cvs commit: ALFS/nALFS/src nalfs.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Mon Mar 15 20:29:03 PST 2004


kpfleming    04/03/15 21:29:03

  Modified:    nALFS/src nalfs.c
  Log:
  fix display of profile name on top line of screen
  
  Revision  Changes    Path
  1.47      +2 -14     ALFS/nALFS/src/nalfs.c
  
  Index: nalfs.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/nalfs.c,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- nalfs.c	16 Mar 2004 04:21:58 -0000	1.46
  +++ nalfs.c	16 Mar 2004 04:29:03 -0000	1.47
  @@ -453,21 +453,9 @@
   static void draw_profile_name(element_s *profile)
   {
   	int start, end;
  -	char *tmp, *profile_name = NULL;
  -
  -
  -	if ((tmp = strrchr(profile->handler->name, '/'))) {
  -		append_str(&profile_name, ++tmp);
  -	} else {
  -		append_str(&profile_name, profile->handler->name);
  -	}
  -
  -	ASSERT(profile_name != NULL);
  -
  -	if (profile_name == NULL) {
  -		return;
  -	}
  +	char *profile_name = NULL;
   
  +	profile_name = profile->handler->alloc_data(profile, HDATA_DISPLAY_NAME);
   	end = windows.max_cols - strlen(PACKAGE_STRING) - 10;
   	start = end - strlen(profile_name) - 3;
   
  
  
  



More information about the alfs-log mailing list