Deleted Added
full compact
dmenu.c (19573) dmenu.c (20247)
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last attempt in the `sysinstall' line, the next
5 * generation being slated for what's essentially a complete rewrite.
6 *
1/*
2 * The new sysinstall program.
3 *
4 * This is probably the last attempt in the `sysinstall' line, the next
5 * generation being slated for what's essentially a complete rewrite.
6 *
7 * $Id: dmenu.c,v 1.26 1996/11/07 08:03:21 jkh Exp $
7 * $Id: dmenu.c,v 1.27 1996/11/09 16:46:56 joerg Exp $
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 161 unchanged lines hidden (view full) ---

177{
178 char *w, *cp, *cp2, *cp3, tmp[256];
179
180 w = (char *)item->aux;
181 if (!w)
182 w = (char *)item->data;
183 if (!w)
184 return FALSE;
8 *
9 * Copyright (c) 1995
10 * Jordan Hubbard. All rights reserved.
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions
14 * are met:
15 * 1. Redistributions of source code must retain the above copyright

--- 161 unchanged lines hidden (view full) ---

177{
178 char *w, *cp, *cp2, *cp3, tmp[256];
179
180 w = (char *)item->aux;
181 if (!w)
182 w = (char *)item->data;
183 if (!w)
184 return FALSE;
185 strncpy(tmp, w, 256);
185 SAFE_STRCPY(tmp, w);
186 if ((cp = index(tmp, '=')) != NULL) {
187 *(cp++) = '\0';
188 if ((cp3 = index(cp, ',')) != NULL)
189 *cp3 = '\0';
190 cp2 = getenv(tmp);
191 if (cp2)
192 return !strcmp(cp, cp2);
193 else

--- 74 unchanged lines hidden ---
186 if ((cp = index(tmp, '=')) != NULL) {
187 *(cp++) = '\0';
188 if ((cp3 = index(cp, ',')) != NULL)
189 *cp3 = '\0';
190 cp2 = getenv(tmp);
191 if (cp2)
192 return !strcmp(cp, cp2);
193 else

--- 74 unchanged lines hidden ---