recvjob.c (27448) | recvjob.c (27635) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 186 unchanged lines hidden (view full) --- 195 if (*cp++ != ' ') 196 break; 197 if (!chksize(size)) { 198 (void) write(1, "\2", 1); 199 continue; 200 } 201 (void) strncpy(dfname, cp, sizeof dfname-1); 202 dfname[sizeof dfname-1] = '\0'; | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 186 unchanged lines hidden (view full) --- 195 if (*cp++ != ' ') 196 break; 197 if (!chksize(size)) { 198 (void) write(1, "\2", 1); 199 continue; 200 } 201 (void) strncpy(dfname, cp, sizeof dfname-1); 202 dfname[sizeof dfname-1] = '\0'; |
203 if (index(dfname, '/')) | 203 if (strchr(dfname, '/')) |
204 frecverr("readjob: %s: illegal path name", 205 dfname); 206 (void) readfile(dfname, size); 207 continue; 208 } 209 frecverr("protocol screwup: %s", line); 210 } 211} --- 148 unchanged lines hidden --- | 204 frecverr("readjob: %s: illegal path name", 205 dfname); 206 (void) readfile(dfname, size); 207 continue; 208 } 209 frecverr("protocol screwup: %s", line); 210 } 211} --- 148 unchanged lines hidden --- |