Changeset 4083c49
- Timestamp:
- Aug 22, 2009, 12:49:20 AM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 303a9e1
- Parents:
- f4d4a00
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/22/09 00:18:32)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/22/09 00:49:20)
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rf4d4a00 r4083c49 1928 1928 myargv++; 1929 1929 } 1930 newbuff[strlen(newbuff)-1]='\0'; /* remove last space */ 1930 if (strlen(newbuff) >= 1) 1931 newbuff[strlen(newbuff) - 1] = '\0'; /* remove last space */ 1931 1932 1932 1933 recip=owl_malloc(strlen(argv[0])+5); -
functions.c
r27f6487 r4083c49 3349 3349 } 3350 3350 while (fgets(buff, LINE, file)!=NULL) { 3351 if (buff[0] == '#') continue; 3352 buff[strlen(buff)-1]='\0'; 3351 if (buff[0] == '\0' || buff[0] == '#') continue; 3352 if (buff[strlen(buff) - 1] == '\n') 3353 buff[strlen(buff) - 1] = '\0'; 3353 3354 owl_function_command(buff); 3354 3355 } -
util.c
re30ed92 r4083c49 595 595 /* strip the newline */ 596 596 newline=0; 597 if (buff[ strlen(buff)-1]=='\n') {597 if (buff[0] != '\0' && buff[strlen(buff) - 1] == '\n') { 598 598 buff[strlen(buff)-1]='\0'; 599 599 newline=1; -
viewwin.c
r075ba92 r4083c49 12 12 if (text) { 13 13 owl_fmtext_append_normal(&(v->fmtext), text); 14 if (text[ strlen(text)-1]!='\n' && text[0]!='\0') {14 if (text[0] != '\0' && text[strlen(text) - 1] != '\n') { 15 15 owl_fmtext_append_normal(&(v->fmtext), "\n"); 16 16 } -
zephyr.c
r27f6487 r4083c49 378 378 if (file) { 379 379 while ( fgets(buffer, 1024, file)!=NULL ) { 380 if (buffer[0] =='#' || buffer[0]=='\n' || buffer[0]=='\n') continue;380 if (buffer[0] == '\0' || buffer[0] == '#' || buffer[0] == '\n') continue; 381 381 382 382 if (count == numSubs) { … … 385 385 } 386 386 387 buffer[strlen(buffer)-1]='\0'; 387 if (buffer[strlen(buffer) - 1] == '\n') 388 buffer[strlen(buffer) - 1] = '\0'; 388 389 subs[count].zsub_class=owl_strdup("login"); 389 390 subs[count].zsub_recipient=owl_strdup("*"); -
zwrite.c
r4db2355 r4083c49 188 188 } 189 189 pclose(file); 190 if (z->zsig[ strlen(z->zsig)-1]=='\n') {190 if (z->zsig[0] != '\0' && z->zsig[strlen(z->zsig) - 1] == '\n') { 191 191 z->zsig[strlen(z->zsig)-1]='\0'; 192 192 }
Note: See TracChangeset
for help on using the changeset viewer.