patch-src_haserl_c 531 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- haserl-0.8.0.orig/src/haserl.c 2004-11-10 18:59:35.000000000 +0100
  3. +++ haserl-0.8.0/src/haserl.c 2008-10-09 14:21:28.000000000 +0200
  4. @@ -131,7 +131,7 @@ int myputenv (char *newbuf, char *prefix
  5. if (strlen(prefix)) { memcpy (entry, prefix, strlen(prefix)); }
  6. memcpy ((char *) (entry + strlen(prefix)), newbuf, strlen(newbuf));
  7. - keylen = (size_t) (index (entry, '=') - entry);
  8. + keylen = (size_t) (strchr (entry, '=') - entry);
  9. if ( keylen <= 0 ) {
  10. free (entry);